mirror of
https://github.com/verilator/verilator.git
synced 2026-09-06 17:01:09 +02:00
Modernize va args (#2214)
Verilator uses a form of variadic macros that are nonstandard, making it unable to be compiled under MSVC. Replace the old synax with the standard syntax. This fixes MSVC usage. Signed-off-by: Sean Cross <[email protected]>
This commit is contained in:
@@ -42,8 +42,8 @@
|
||||
VL_FATAL_MT(__FILE__, __LINE__, "", \
|
||||
(std::string("%%Error: Unsupported DPI function: ")+VL_FUNC).c_str())
|
||||
|
||||
#define _VL_SVDPI_WARN(message...) \
|
||||
VL_PRINTF_MT(message)
|
||||
#define _VL_SVDPI_WARN(...) \
|
||||
VL_PRINTF_MT(__VA_ARGS__)
|
||||
|
||||
// Function requires a "context" in the import declaration
|
||||
#define _VL_SVDPI_CONTEXT_WARN() \
|
||||
|
||||
Reference in New Issue
Block a user