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

Co-authored-by: Mariusz Glebocki <mglebocki@antmicro.com>
This commit is contained in:
Kamil Rakoczy 2023-09-11 15:01:34 +02:00 committed by GitHub
parent 0baee84e96
commit e77d847671
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

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"
//********************************************************************

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"

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"