make working classes && add vscode config && add lua submodule
This commit is contained in:
23
src/debug.h
Normal file
23
src/debug.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef __DEBUG_H__
|
||||
#define __DEBUG_H__
|
||||
|
||||
#ifdef NDEBUG
|
||||
|
||||
#include <sys/ksys.h>
|
||||
/**
|
||||
* Debug out, enabled
|
||||
*/
|
||||
#define DEBUG_PRINT(msg) _ksys_debug_puts(msg)
|
||||
|
||||
#else
|
||||
|
||||
/**
|
||||
* Debug out, disabled
|
||||
*/
|
||||
#define DEBUG_PRINT(msg)
|
||||
|
||||
#endif
|
||||
|
||||
#define DEBUG_LINE(msg) DEBUG_PRINT(msg); DEBUG_PRINT("\n")
|
||||
|
||||
#endif // __DEBUG_H__
|
Reference in New Issue
Block a user