diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-29 13:15:58 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-29 13:15:58 +0200 |
commit | 529f067e65b0146c5afa150103809ba5e09869b7 (patch) | |
tree | 80fa7a44ce8f5d43b2cc04dc1d0fd1fb79eb254e /robot/sim.h | |
parent | dbd005573295293d35647dc0e9feb2beec48a31c (diff) |
client/robot sim connected
Diffstat (limited to 'robot/sim.h')
-rw-r--r-- | robot/sim.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/robot/sim.h b/robot/sim.h index 23b47f1..864a43a 100644 --- a/robot/sim.h +++ b/robot/sim.h @@ -24,6 +24,16 @@ extern bool g_w2_sim_headless; #define DBG_BYTES_PER_LINE 16 // debug colors +#define COL_BLK "" +#define COL_RED "" +#define COL_GRN "" +#define COL_YEL "" +#define COL_BLU "" +#define COL_MAG "" +#define COL_CYN "" +#define COL_WHT "" +#define COL_RST "" +#ifdef DBG_ENABLE_COLOR #define COL_BLK "\e[0;30m" #define COL_RED "\e[0;31m" #define COL_GRN "\e[0;32m" @@ -33,6 +43,7 @@ extern bool g_w2_sim_headless; #define COL_CYN "\e[0;36m" #define COL_WHT "\e[0;37m" #define COL_RST "\e[0m" +#endif // debug stdout print macros #define simprintf(message, ...) if (!g_w2_sim_headless) printf(COL_RED "[SIM] " COL_RST message, ##__VA_ARGS__) |