Select vpi_printf only on definitions being set

This commit is contained in:
Simon Southwell 2026-02-06 08:53:21 +00:00
commit e89524d009
2 changed files with 4 additions and 4 deletions

View file

@ -35,7 +35,7 @@
#include <pthread.h>
#include <semaphore.h>
#define VERSION_STRING "VProc version 1.13.4. Copyright (c) 2004-2025 Simon Southwell."
#define VERSION_STRING "VProc version 1.13.5. Copyright (c) 2004-2026 Simon Southwell."
#ifndef VP_MAX_NODES
#define VP_MAX_NODES 64

View file

@ -78,10 +78,10 @@ extern void VRegIrqPy (const pPyIrqCB_t func, const unsigned node);
// VUser function prototype for VInit in VSched.c
extern int VUser (const unsigned node);
#if defined(VPROC_VHDL) || defined (ICARUS) || defined (VPROC_SV)
# define VPrint(...) printf (__VA_ARGS__)
#else
#if defined(VPROC_USE_VPI_VPRINT)
# define VPrint(...) vpi_printf (__VA_ARGS__)
#else
# define VPrint(...) printf (__VA_ARGS__)
#endif
#ifdef DEBUG