ft8_lib/common/debug.h

13 lines
227 B
C
Raw Normal View History

2018-11-02 15:55:54 +08:00
#pragma once
#include <stdio.h>
#define LOG_DEBUG 0
#define LOG_INFO 1
#define LOG_WARN 2
#define LOG_ERROR 3
#define LOG_FATAL 4
2018-11-02 15:55:54 +08:00
#define LOG(level, ...) if (level >= LOG_LEVEL) fprintf(stderr, __VA_ARGS__)