00001
00007 #if !defined(_LOGGING_H)
00008 #define _LOGGING_H
00009
00010 #if defined(__cplusplus)
00011 extern "C" {
00012 #endif
00013
00014 #ifdef LOGGING
00015
00019 void WriteLog(char *s, ...);
00024 void WriteLogX(char *s, ...);
00025 #else
00026 #if defined(__cplusplus) || defined(_MSVC)
00027 static void WriteLog(char *s, ...) {}
00028 static void WriteLogX(char *s, ...) {}
00029 #else
00030 #define WriteLog(...)
00031 #define WriteLogX(...)
00032 #endif
00033 #endif
00034
00035 #if defined(__cplusplus)
00036 }
00037 #endif
00038
00039 #endif