#ifndef _DEBUG_H_ #define _DEBUG_H_ #define DEBUG_INFO 0x0001 #define DEBUG_ERROR 0x0002 #define DEBUG_IFACE 0x0004 #define DEBUG_NET 0x0008 #define DEBUG_SESSION 0x0010 #define DEBUG_SERVER 0x0020 #define DEBUG_RAILWAY 0x0040 #define DEBUG_LOCO 0x0080 #define DEBUG_TEXT1LEN 64000 #define DEBUG_TEXT2LEN 65000 void debug(int type, char *fmt,...); #endif // _DEBUG_H_