Add more debugging macros
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Rafal Kupiec 2023-02-06 16:10:32 +01:00
parent 9c7d961c5a
commit f8d2ccc0d0
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -10,6 +10,13 @@
#define __XTDK_XTDEBUG_H
/* Debugging macros */
#define CHECKPOINT LdrPrint(L"Checkpoint reached at %s:%d\n", __FILE__, __LINE__);
#define DEPRECATED LdrPrint(L"Called deprecated routine '%s()' at %s:%d\n", \
__FUNCTION__, __FILE__, __LINE__);
#define UNIMPLEMENTED LdrPrint(L"Called unimplemented routine '%s()' at %s:%d\n", \
__FUNCTION__, __FILE__, __LINE__);
/* XTOS platform debugging macros */
#ifdef DBG
#define DEBUG 1