00001
00002
00003
00004
00005
00006
00007
00008
00009
00014 #ifndef __CONSOLE_H__
00015 #define __CONSOLE_H__
00016
00017 #ifdef WIN32
00018 #define __CDECL __cdecl
00019 #else
00020 #define __CDECL
00021 #endif
00022
00023
00024 #ifdef __cplusplus
00025
00026 extern "C" void __CDECL ConOut(char *txt, ...);
00027 extern "C" void __CDECL ErrOut(char *txt, ...);
00028 extern "C" void __CDECL WarnOut(char *txt, ...);
00029 extern "C" void __CDECL InfoOut(char *txt, ...);
00030 extern "C" void __CDECL PanicOut(char *txt, ...);
00031 extern "C" void __CDECL DmpOut(char *txt, ...);
00032 extern "C" void __CDECL SDbgOut(char *txt, ...);
00033 extern "C" void __CDECL SDbgIn(char *s, int n);
00034 extern "C" void __CDECL STraceOut(char *txt, ...);
00035 void clearscreen( void );
00036 void setWinTitle(char *str, ...);
00037 void constart( void );
00038
00039 #define ALERT_TYPE_OK 0
00040 #define ALERT_TYPE_YESNO 1
00041
00042 #define ALERT_MESSAGE 0
00043 #define ALERT_INFO 1
00044 #define ALERT_WARNING 2
00045 #define ALERT_ERROR 3
00046 #define ALERT_FATAL 4
00047
00048 bool alertBox(char *msg, char *title, int gravity = 0, int type = 0);
00049
00050 #else
00051 void __CDECL ConOut(char *txt, ...);
00052 void __CDECL STraceOut(char *txt, ...);
00053 void __CDECL SDbgOut(char *txt, ...);
00054 void __CDECL SDbgIn(char *s, int n);
00055 #endif
00056
00057 void initConsole();
00058 char* getNoXDate();
00059
00060 #endif //__CONSOLE_H__