ft8_lib/common/debug.h
2018-11-02 14:03:28 +02:00

12 lines
197 B
C

#pragma once
#include <stdio.h>
#define LOG_INFO 0
#define LOG_WARN 1
#define LOG_ERROR 2
#define LOG_FATAL 3
#define LOG(level, ...) if (level >= LOG_LEVEL) printf(__VA_ARGS__)