diff options
Diffstat (limited to 'utils.c')
| -rw-r--r-- | utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,9 @@ +#include "utils.h" + +#include <stdlib.h> +#include <string.h> + +int is_debug() { + char* env = getenv("DEBUG"); + return env && (strcmp(env, "true") == 0 || strcmp(env, "1") == 0); +} |
