initial commit

This commit is contained in:
2017-03-12 12:42:19 +01:00
parent fedf2b7b90
commit dcb9ea4d44
12 changed files with 1435 additions and 0 deletions

22
Debug.h Normal file
View 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