Commit 176d1226 authored by Erik Faye-Lund's avatar Erik Faye-Lund
Browse files

added some debug-enables

git-svn-id: https://pimpmobile.svn.sourceforge.net/svnroot/pimpmobile/trunk@95 3d5ecaf0-f903-0410-b953-c2c1a4d75763
parent 3aa0f6a3
......@@ -4,15 +4,25 @@
#include <gba_video.h>
#if 0
#define PROFILE_COLOR(r, g, b) BG_COLORS[0] = RGB5((r), (g), (b))
#define PROFILE_COLOR(r, g, b) BG_COLORS[0] = RGB5((r), (g), (b))
#else
#define PROFILE_COLOR(r, g, b)
#define PROFILE_COLOR(r, g, b)
#endif
#ifdef ENABLE_DEBUG_PRINTING
#define DEBUG_PRINT(x) iprintf x
#ifdef DEBUG_PRINTF_ENABLED
#define DEBUG_PRINT(x) iprintf x
#else
#define DEBUG_PRINT(x)
#define DEBUG_PRINT(x)
#endif
#ifndef ASSERT_ENABLED
#define ASSERT(expr, X) \
do{ \
if (!(expr)) DEBUG_PRINT("*** ASSERT FAILED %s AT (%s:%i)\n", #expr, __FILE__, __LINE__); \
} while(0)
#else
#define ASSERT(expr, X)
#endif
#endif /* DEBUG_H */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment