00001 #include "error.h"
00002
00003 #include <string>
00004 using namespace std;
00005
00006 #ifdef GLT_WIN32
00007 #include <windows.h>
00008 #endif
00009
00022 void
00023 gltError(const std::string &message)
00024 {
00025 #ifdef GLT_WIN32
00026 MessageBox(NULL,message.c_str(),"Runtime Error",MB_OK | MB_ICONERROR);
00027 #endif
00028 }
00029
00030 void
00031 gltWarning(const std::string &message)
00032 {
00033 #ifdef GLT_WIN32
00034 MessageBox(NULL,message.c_str(),"Runtime Warning",MB_OK | MB_ICONWARNING);
00035 #endif
00036 }