1 2 3 4 5 6 7 8 9
#include "log.h" #include <stdio.h> #if(LOG_LEVEL < LOG_DEBUG) void log_debug(char* msg) { fprintf(stdout, "%s\n", msg); } #endif