mirror of
https://github.com/verilator/verilator.git
synced 2025-01-06 06:37:45 +00:00
Internals: clang-format
This commit is contained in:
parent
3f119f5647
commit
44765e03a3
@ -861,12 +861,14 @@ void EmitCSyms::emitDpiHdr() {
|
||||
for (AstCFunc* nodep : m_dpis) {
|
||||
if (nodep->dpiExportWrapper()) {
|
||||
if (!firstExp++) puts("\n// DPI EXPORTS\n");
|
||||
putsDecoration("// DPI export" + ifNoProtect(" at " + nodep->fileline()->ascii()) + "\n");
|
||||
putsDecoration("// DPI export" + ifNoProtect(" at " + nodep->fileline()->ascii())
|
||||
+ "\n");
|
||||
puts("extern " + nodep->rtnTypeVoid() + " " + nodep->nameProtect() + "("
|
||||
+ cFuncArgs(nodep) + ");\n");
|
||||
} else if (nodep->dpiImport()) {
|
||||
if (!firstImp++) puts("\n// DPI IMPORTS\n");
|
||||
putsDecoration("// DPI import" + ifNoProtect(" at " + nodep->fileline()->ascii()) + "\n");
|
||||
putsDecoration("// DPI import" + ifNoProtect(" at " + nodep->fileline()->ascii())
|
||||
+ "\n");
|
||||
puts("extern " + nodep->rtnTypeVoid() + " " + nodep->nameProtect() + "("
|
||||
+ cFuncArgs(nodep) + ");\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user