123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef __LPRINTF__
- #define __LPRINTF__
- typedef enum
- {
- LO_INFO=1,
- LO_CONFIRM=2,
- LO_WARN=4,
- LO_ERROR=8,
- LO_FATAL=16,
- LO_DEBUG=32,
- LO_ALWAYS=64,
- } OutputLevels;
- #ifndef __GNUC__
- #define __attribute__(x)
- #endif
- extern int lprintf(OutputLevels pri, const char *fmt, ...) __attribute__((format(printf,2,3)));
- extern int cons_output_mask;
- extern int cons_error_mask;
- void I_Error(const char *error, ...) __attribute__((format(printf,1,2)));
- #ifdef _WIN32
- void I_ConTextAttr(unsigned char a);
- void I_UpdateConsole(void);
- int Init_ConsoleWin(void);
- void Done_ConsoleWin(void);
- #endif
- #endif
|