Internals: Use standard function for include guards. No functional change intended.

This commit is contained in:
Wilson Snyder
2019-12-23 19:00:17 -05:00
parent 5c59fde92e
commit 5089f997cc
7 changed files with 45 additions and 22 deletions
+2 -3
View File
@@ -101,8 +101,7 @@ void EmitCInlines::emitInt() {
m_ofp = &hf;
ofp()->putsHeader();
puts("#ifndef _"+topClassName()+"__Inlines_H_\n");
puts("#define _"+topClassName()+"__Inlines_H_\n");
ofp()->putsGuard();
puts("\n");
puts("#include \"verilated.h\"\n");
@@ -112,7 +111,7 @@ void EmitCInlines::emitInt() {
// Placeholder - v3Global.needHInlines(true) currently not used
puts("//======================\n\n");
puts("#endif // guard\n");
ofp()->putsEndGuard();
}
//######################################################################