Triditizer
logging.h
Go to the documentation of this file.
1 #ifndef _LOGGING_H
2 #define _LOGGING_H
3 
4 //#define LOG_TO_FILE // comment to disable logging to file
5 //#define LOG_PIXELSHADERS // comment to disable logging to file of pixel shaders
6 //#define LOG_VERTEXSHADERS // comment to disable logging to file of vertex shaders
7 
8 void __cdecl open_log(void);
9 void __cdecl add_log(const char * fmt, ...);
10 void __cdecl close_log(void);
11 
12 #ifdef LOG_TO_FILE
13 #define ADD_LOG(fmt, ...) { add_log(fmt, __VA_ARGS__); }
14 #else
15 #define ADD_LOG(fmt, ...) {}
16 #endif
17 
18 #endif
void __cdecl close_log(void)
Definition: logging.cpp:40
void __cdecl add_log(const char *fmt,...)
Definition: logging.cpp:24
void __cdecl open_log(void)
Definition: logging.cpp:14