From 7d9b5a0c84a931542c088cfe6bc4325be22ecb71 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 25 Aug 2016 11:16:49 +0200 Subject: Initial commit --- compiler/log.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 compiler/log.c (limited to 'compiler/log.c') diff --git a/compiler/log.c b/compiler/log.c new file mode 100644 index 0000000..9362019 --- /dev/null +++ b/compiler/log.c @@ -0,0 +1,9 @@ +#include "log.h" + +#include + +void log_debug(char* msg) { + #if(LOG_LEVEL < LOG_DEBUG) + fprintf(stdout, "%s\n", msg); + #endif +} -- cgit v1.2.3