Select vpi_printf only on definitions being set
This commit is contained in:
parent
8fa7a6df65
commit
e89524d009
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue