Check whether V3ERROR_NO_GLOBAL_ is not already defined. (#4475)

Co-authored-by: Mariusz Glebocki <[email protected]>
This commit is contained in:
Kamil Rakoczy
2023-09-11 09:01:34 -04:00
committed by GitHub
co-authored by Mariusz Glebocki
parent 0baee84e96
commit e77d847671
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -20,7 +20,9 @@
#include "config_build.h"
#include "verilatedos.h"
#ifndef V3ERROR_NO_GLOBAL_
#define V3ERROR_NO_GLOBAL_
#endif
#include "V3Error.h"
//********************************************************************
+2
View File
@@ -24,7 +24,9 @@
#include "verilatedos.h"
// Cheat for speed and compile .cpp files into one object TODO: Reconsider
#ifndef V3ERROR_NO_GLOBAL_
#define V3ERROR_NO_GLOBAL_
#endif
#include "V3Error.h"
static int debug() { return V3Error::debugDefault(); }
#include "V3Error.cpp"
+2
View File
@@ -25,7 +25,9 @@
#include <unordered_map>
#include <vector>
#ifndef V3ERROR_NO_GLOBAL_
#define V3ERROR_NO_GLOBAL_
#endif
#include "verilated_cov_key.h"
#include "V3Error.h"