blues/util.h

31 lines
720 B
C
Raw Permalink Normal View History

2018-07-08 16:08:53 +02:00
#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)
2022-03-12 23:53:43 +01:00
#define DBG_SOUND (1 << 7)
2018-07-08 16:08:53 +02:00
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, ...);
2022-03-12 23:41:23 +01:00
#ifdef NDEBUG
#define print_debug(x, ...)
#endif
2018-12-16 15:28:52 +01:00
extern FILE * fopen_nocase(const char *path, const char *filename);
extern uint16_t fread_le16(FILE *fp);
2018-07-08 16:08:53 +02:00
#endif /* UTIL_H__ */