Changes to vpi/v2009_array.c

"Microsoft Visual Studio Express 2015 RC Web" cannot have a variable for the size when declaring an array, it won't compile.
This commit is contained in:
Frederick C. Kurz 2015-07-10 12:50:39 -04:00 committed by Stephen Williams
parent 11d7cbd3e2
commit 5e931b7e89
1 changed files with 4 additions and 0 deletions

View File

@ -55,7 +55,11 @@ static PLI_INT32 one_array_arg_compiletf(ICARUS_VPI_CONST PLI_BYTE8*name)
// Checks if a function is passed an array and optionally an integer.
static PLI_INT32 array_int_opt_arg_compiletf(ICARUS_VPI_CONST PLI_BYTE8*name)
{
#if defined(__GNUC__)
const int MAX_ARGC = 3; // one more is to verify there are at most 2 args
#else
#define MAX_ARGC 3
#endif
vpiHandle callh = vpi_handle(vpiSysTfCall, 0);
vpiHandle argv, arg[MAX_ARGC];
PLI_INT32 arg_type[MAX_ARGC];