blues/util.h

31 lines
720 B
C
Executable File

#ifndef UTIL_H__
#define UTIL_H__
#include "intern.h"
#define DBG_GAME (1 << 0)
#define DBG_FILEIO (1 << 1)
#define DBG_RESOURCE (1 << 2)
#define DBG_MIXER (1 << 3)
#define DBG_SYSTEM (1 << 4)
#define DBG_UNPACK (1 << 5)
#define DBG_SCREEN (1 << 6)
#define DBG_SOUND (1 << 7)
extern int g_debug_mask;
extern void print_debug(int debug_channel, const char *msg, ...);
extern void print_warning(const char *msg, ...);
extern void print_error(const char *msg, ...);
extern void print_info(const char *msg, ...);
#ifdef NDEBUG
#define print_debug(x, ...)
#endif
extern FILE * fopen_nocase(const char *path, const char *filename);
extern uint16_t fread_le16(FILE *fp);
#endif /* UTIL_H__ */