summaryrefslogtreecommitdiff
path: root/Global_Inc.h
diff options
context:
space:
mode:
Diffstat (limited to 'Global_Inc.h')
-rw-r--r--Global_Inc.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Global_Inc.h b/Global_Inc.h
index 543672d..e21d1c0 100644
--- a/Global_Inc.h
+++ b/Global_Inc.h
@@ -23,9 +23,12 @@
* Defines
* *************************************/
-#define DEBUG_VAR(var, suff, x, y) char buffer##suff[16]; \
- snprintf(buffer##suff, sizeof(buffer##suff), "%d", var); \
- GfxPrintText(buffer##suff, x - (strlen(buffer##suff)<<3), y)
+#define DEBUG_VAR(var, suff, x, y) if (1) \
+ { \
+ char buffer##suff[16]; \
+ Systemitoa(str, sizeof(buffer##suff[16]), var); \
+ GfxPrintText(buffer##suff, x - (strlen(buffer##suff)<<3), y); \
+ }
/* *************************************
* Structs and enums