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:
Sean Cross
2020-03-29 10:29:12 -04:00
committed by GitHub
parent 07d00f26aa
commit a1a2650f1e
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -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() \