added DEBUG_ONLY() macro
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6912 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
63ee851ddd
commit
4c7a07c0c6
@ -53,6 +53,7 @@ void debug_printf(const char *text,...);
|
||||
#define TRACE(a) debug_printf a
|
||||
#define LOG(a) log_printf a
|
||||
#define LOG_CREATE() log_create()
|
||||
#define DEBUG_ONLY(a) a
|
||||
#define ASSERT(a) if (a) {} else LOG(("ASSERT failed! file = %s, line = %d\n",__FILE__,__LINE__))
|
||||
void log_create(void);
|
||||
void log_printf(const char *text,...);
|
||||
@ -62,6 +63,7 @@ void debug_printf(const char *text,...);
|
||||
#define ASSERT(a) ((void)(0))
|
||||
#define LOG(a) ((void)(0))
|
||||
#define LOG_CREATE()
|
||||
#define DEBUG_ONLY(a)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user