initial commit
This commit is contained in:
22
Debug.h
Normal file
22
Debug.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef DEBUG_H
|
||||
#define DEBUG_H
|
||||
|
||||
#define DEBUG
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
#define debug(str) os_printf(str)
|
||||
#define debugMod(module, str) os_printf("[%s] %s\n", module, str)
|
||||
#define debugMod1(module, str, val) os_printf("[%s] ", module); os_printf(str, val); os_printf("\n");
|
||||
#define IF_DEBUG(a) a
|
||||
|
||||
#else
|
||||
|
||||
#define debug(module, str)
|
||||
#define debugMod(module, str)
|
||||
#define debugMod1(module, str, val)
|
||||
#define IF_DEBUG(a)
|
||||
|
||||
#endif
|
||||
|
||||
#endif // DEBUG_H
|
||||
Reference in New Issue
Block a user