Use const char * on debug print
parent
f53f547dc3
commit
37cab4140b
|
@ -17,7 +17,7 @@
|
|||
static int debugVerbosity = 0;
|
||||
|
||||
#if defined(DEBUG) || defined(_DEBUG)
|
||||
void DebugPrint(int level, char *format, ...)
|
||||
void DebugPrint(int level, const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#define DPRINTF(level, args...)
|
||||
#else
|
||||
#define DPRINTF(level, args...) DebugPrint(level, args)
|
||||
extern void DebugPrint(int level, char *format, ...);
|
||||
extern void DebugPrint(int level, const char *format, ...);
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
@ -31,7 +31,7 @@ extern void DebugPrint(int level, char *format, ...);
|
|||
#define DPRINTF //
|
||||
#else
|
||||
#define DPRINTF DebugPrint
|
||||
extern void DebugPrint(int level, char *format, ...);
|
||||
extern void DebugPrint(int level, const char *format, ...);
|
||||
#endif
|
||||
|
||||
#endif // __GNUC__
|
||||
|
|
Loading…
Reference in New Issue