Removing static and making extern

dev
Rohit Jain 2018-10-11 16:51:29 -07:00
parent 705e0b18ab
commit a47f6e6f2d
2 changed files with 6 additions and 1 deletions

View File

@ -317,6 +317,11 @@ UTIL_createFileList(const char **inputNames, unsigned inputNamesNb,
return fileTable; return fileTable;
} }
/*-****************************************
* Console log
******************************************/
int g_utilDisplayLevel;
/*-**************************************** /*-****************************************
* Time functions * Time functions
******************************************/ ******************************************/

View File

@ -110,7 +110,7 @@ extern "C" {
/*-**************************************** /*-****************************************
* Console log * Console log
******************************************/ ******************************************/
static int g_utilDisplayLevel; extern int g_utilDisplayLevel;
#define UTIL_DISPLAY(...) fprintf(stderr, __VA_ARGS__) #define UTIL_DISPLAY(...) fprintf(stderr, __VA_ARGS__)
#define UTIL_DISPLAYLEVEL(l, ...) { if (g_utilDisplayLevel>=l) { UTIL_DISPLAY(__VA_ARGS__); } } #define UTIL_DISPLAYLEVEL(l, ...) { if (g_utilDisplayLevel>=l) { UTIL_DISPLAY(__VA_ARGS__); } }