mirror of
https://github.com/verilator/verilator.git
synced 2026-09-02 10:48:27 +02:00
Fixes #7626.
This commit is contained in:
+6
-2
@@ -1434,8 +1434,12 @@ void EmitCSyms::emitDpiHdr() {
|
||||
if (!firstImp++) puts("\n// DPI IMPORTS\n");
|
||||
putsDecoration(nodep, "// DPI import" + sourceLoc + "\n");
|
||||
}
|
||||
putns(nodep, "extern " + nodep->rtnTypeVoid() + " " + nodep->nameProtect() + "("
|
||||
+ cFuncArgs(nodep) + ");\n");
|
||||
if (nodep->dpiCDeclOverride()) {
|
||||
putns(nodep, "extern " + nodep->dpiCDecl() + ";\n");
|
||||
} else {
|
||||
putns(nodep, "extern " + nodep->rtnTypeVoid() + " " + nodep->nameProtect() + "("
|
||||
+ cFuncArgs(nodep) + ");\n");
|
||||
}
|
||||
}
|
||||
|
||||
puts("\n");
|
||||
|
||||
Reference in New Issue
Block a user