2 // This file is (C) 2003-2004 Royce Mitchell III
3 // and released under the BSD & LGPL licenses
14 void panic ( const char* format
, ... )
19 va_start(arg
, format
);
20 #if defined(WIN32) && !defined(_CONSOLE)
22 _vsnprintf ( buf
, sizeof(buf
)-1, format
, arg
);
23 MessageBox ( NULL
, buf
, "Panic!", MB_OK
|MB_ICONEXCLAMATION
);
25 done
= vprintf(format
, arg
);
29 #if defined(WIN32) && defined(_CONSOLE)
30 printf ( "Press any key to exit\n" );
32 #endif//WIN32 && _CONSOLE