blob: 6a42a7c6ea3b3582c541e8a13b8b45ad39799c57 (
plain) (
blame)
1
2
3
4
5
6
7
8
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);
}
|