From f8d2ccc0d0dff15c1f0d1682b0cc30ca5dc73b84 Mon Sep 17 00:00:00 2001 From: belliash Date: Mon, 6 Feb 2023 16:10:32 +0100 Subject: [PATCH] Add more debugging macros --- sdk/xtdk/xtdebug.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sdk/xtdk/xtdebug.h b/sdk/xtdk/xtdebug.h index 3b7265f..c86c7df 100644 --- a/sdk/xtdk/xtdebug.h +++ b/sdk/xtdk/xtdebug.h @@ -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