diff options
| author | Manuel Palenzuela <[email protected]> | 2021-07-19 17:17:05 +0100 |
|---|---|---|
| committer | Manuel Palenzuela <[email protected]> | 2021-07-19 17:17:05 +0100 |
| commit | 63dd156d873bb96eeaa19b78f9baccacf2f977fd (patch) | |
| tree | a0dc1c223550e3b33fc2c90c6f555fce789bdfc7 /config.h | |
| parent | Feature: Implemented instructions to run the logo rom (diff) | |
| download | CHIP8-Emulator-63dd156d873bb96eeaa19b78f9baccacf2f977fd.tar.gz CHIP8-Emulator-63dd156d873bb96eeaa19b78f9baccacf2f977fd.tar.bz2 CHIP8-Emulator-63dd156d873bb96eeaa19b78f9baccacf2f977fd.zip | |
Misc: Added the dbgprintf() macro
Diffstat (limited to '')
| -rw-r--r-- | config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h b/config.h index dc5778a..a0d6073 100644 --- a/config.h +++ b/config.h @@ -1,8 +1,14 @@ #ifndef _CONFIG_H_ #define _CONFIG_H_ +#define DEBUG 1 + #define INSTRUCTIONS_PER_SECOND 700 #define GAME_LOAD_LOCATION 0x200 #define FONT_LOAD_LOCATION 0x50 + +#define dbgprintf(fmt, ...) \ + do { if(DEBUG) fprintf (stdout, fmt, ##__VA_ARGS__); } while(0) + #endif |