** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: syserror.cpp,v 1.7 2000/12/06 01:46:43 kevin Exp $
+** $Id: syserror.cpp,v 1.9 2000/12/27 20:09:19 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
break;
case ERR_WARNING:
std::cout << "WARNING ERROR: ";
+ break;\r
+ case ERR_TRACE:\r
+ std::cout << "Trace: ";\r
break;
default:
std::cout << "Illegal error code #" << severity << ": ";
}
- char errStr[512];
+ char errStr[512];\r
+
#if HAVE_VSNPRINTF
vsnprintf (errStr, sizeof(errStr), msg, arg);
#elif HAVE_VSPRINTF
- vsprintf (errStr, msg, arg);
+ vsprintf (errStr, msg, arg);\r
+#else\r
+ strncpy (errStr, sizeof(errStr), "Error message not available on this platform.");
#endif
std::cout << errStr << std::endl;