1
0
mirror of synced 2026-01-30 05:44:00 +00:00

cxxrtl: add missing extern "C".

This bug was hidden if a header was generated.
This commit is contained in:
whitequark
2020-07-09 17:52:52 +00:00
parent f313211c32
commit ab59e33b2b

View File

@@ -1935,6 +1935,7 @@ struct CxxrtlWorker {
f << "} // namespace " << design_ns << "\n";
f << "\n";
if (top_module != nullptr && debug_info) {
f << "extern \"C\"\n";
f << "cxxrtl_toplevel " << design_ns << "_create() {\n";
inc_indent();
std::string top_type = design_ns + "::" + mangle(top_module);