Commit 925d2247 authored by conrad's avatar conrad
Browse files

update debug_printf for MSVC

parent 59efe863
......@@ -9,7 +9,7 @@
* #include "debug.h"
*
* ...
* debug_print (2, "Something went wrong");
* debug_printf (2, "Something went wrong");
* ...
*
* The macro print_debug(level, fmt) prints a formatted debugging message
......@@ -21,17 +21,17 @@
#ifndef __DEBUG_H__
#define __DEBUG_H__
/* MSVC can't handle C99 */
#if (defined (_MSCVER) || defined (_MSC_VER))
#define debug_printf //
#else
#ifdef DEBUG
#ifndef DEBUG_LEVEL
#define DEBUG_LEVEL 1
#endif
#endif
/* MSVC can't handle C99 */
#if (defined (_MSCVER) || defined (_MSC_VER))
#define DEBUG_LEVEL 0
#endif
#if (DEBUG_LEVEL > 0)
#define DEBUG_MAXLINE 4096
......@@ -87,4 +87,6 @@ debug_print_err (const char * func, int line, const char * fmt, ...)
#define debug_printf(x,y...)
#endif
#endif /* non-C99 */
#endif /* __DEBUG_H__ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment