diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-11-05 18:00:57 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-11-05 18:00:57 +0100 |
| commit | 2d04eba931ac84e2f09d3c8391125f8a991ca7d3 (patch) | |
| tree | e4694bc9ae0072a927b25ef4bade962de822de0d /Global_Inc.h | |
| parent | 8fba2176bc34aa7e507f0b9d983427bb5e522e17 (diff) | |
| download | pocketempires-2d04eba931ac84e2f09d3c8391125f8a991ca7d3.tar.gz | |
Deprecated use of sprintf() in favor of custom routine Systemitoa().
When B button is released and showActionsMenu == true, showActionsMenu = false.
Diffstat (limited to 'Global_Inc.h')
| -rw-r--r-- | Global_Inc.h | 9 |
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 |
