mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Use standard function for include guards. No functional change intended.
This commit is contained in:
+4
-6
@@ -372,12 +372,10 @@ void EmitCSyms::emitSymHdr() {
|
||||
puts("//\n");
|
||||
puts("// Internal details; most calling programs do not need this header,\n");
|
||||
puts("// unless using verilator public meta comments.\n");
|
||||
puts("\n");
|
||||
|
||||
puts("#ifndef _"+symClassName()+"_H_\n");
|
||||
puts("#define _"+symClassName()+"_H_\n");
|
||||
puts("\n");
|
||||
ofp()->putsGuard();
|
||||
|
||||
puts("\n");
|
||||
ofp()->putsIntTopInclude();
|
||||
if (v3Global.needHeavy()) {
|
||||
puts("#include \"verilated_heavy.h\"\n");
|
||||
@@ -474,8 +472,8 @@ void EmitCSyms::emitSymHdr() {
|
||||
}
|
||||
puts("\n");
|
||||
puts("} VL_ATTR_ALIGNED(64);\n");
|
||||
puts("\n");
|
||||
puts("#endif // guard\n");
|
||||
|
||||
ofp()->putsEndGuard();
|
||||
}
|
||||
|
||||
void EmitCSyms::closeSplit() {
|
||||
|
||||
Reference in New Issue
Block a user