forked from github/verilator
Includes: Move version to implementation only.
This commit is contained in:
parent
b7e4083e70
commit
9bc8d77f39
@ -24,7 +24,10 @@
|
||||
//=========================================================================
|
||||
|
||||
#define _VERILATED_CPP_
|
||||
|
||||
#include "verilated_imp.h"
|
||||
#include "verilated_config.h"
|
||||
|
||||
#include <cctype>
|
||||
#include <sys/stat.h> // mkdir
|
||||
|
||||
@ -1721,6 +1724,13 @@ void Verilated::flushCall() VL_MT_SAFE {
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
const char* Verilated::productName() VL_PURE {
|
||||
return VERILATOR_PRODUCT;
|
||||
}
|
||||
const char* Verilated::productVersion() VL_PURE {
|
||||
return VERILATOR_VERSION;
|
||||
}
|
||||
|
||||
void Verilated::commandArgs(int argc, const char** argv) VL_MT_SAFE {
|
||||
VerilatedLockGuard lock(s_args.m_argMutex);
|
||||
s_args.argc = argc;
|
||||
|
@ -28,15 +28,14 @@
|
||||
#ifndef _VERILATED_H_
|
||||
#define _VERILATED_H_ 1 ///< Header Guard
|
||||
|
||||
#include "verilated_config.h"
|
||||
#include "verilatedos.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <cstdarg>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <cmath>
|
||||
#ifdef VL_THREADED
|
||||
# include <atomic>
|
||||
# include <mutex>
|
||||
@ -448,8 +447,8 @@ public:
|
||||
static const char* commandArgsPlusMatch(const char* prefixp) VL_MT_SAFE;
|
||||
|
||||
/// Produce name & version for (at least) VPI
|
||||
static const char* productName() VL_PURE { return VERILATOR_PRODUCT; }
|
||||
static const char* productVersion() VL_PURE { return VERILATOR_VERSION; }
|
||||
static const char* productName() VL_PURE;
|
||||
static const char* productVersion() VL_PURE;
|
||||
|
||||
/// Convenience OS utilities
|
||||
static void mkdir(const char* dirname) VL_MT_UNSAFE;
|
||||
|
Loading…
Reference in New Issue
Block a user