debug_messages.h 355 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef __DEBUG_MESSAGES_H__
#define __DEBUG_MESSAGES_H__

#ifdef __cplusplus
extern "C" {
#endif

// debug_printf is used for logging and error reporting
//
typedef enum tagDebugLevel {
    LVL_INFO,
    LVL_WARN,
    LVL_ERROR,
    LVL_PANIC
} DebugLevel;

void debug_printf(DebugLevel level, const char *fmt, ...);

#ifdef __cplusplus
}
#endif

#endif