** Date Started: Dec. 83
**
** This is part of the CTSim program
-** Copyright (C) 1983-2000 Kevin Rosenberg
+** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id: ctsupport.h,v 1.22 2001/01/02 16:02:12 kevin Exp $
+** $Id$
**
**
** This program is free software; you can redistribute it and/or modify
#include <sstream_subst>
#endif
+#ifndef TRUE
#define TRUE 1
+#endif
+#ifndef FALSE
#define FALSE 0
+#endif
#define OK TRUE
/*----------------------------------------------------------------------*/
void sys_error(int severity, const char *msg, ...);
void sys_verror (std::string& strOutput, int severity, const char *msg, va_list arg);
void sys_error_level(int severity);
+extern unsigned long int g_lSysErrorMaxCount;
// Math Section
inline T nearest (double x)
{ return (x > 0 ? static_cast<T>(x+0.5) : static_cast<T>(x-0.5)); }
+template<class T>
+inline T maxValue (T x, T y)
+{ return (x > y ? x : y); }
+
inline bool isEven (int n)
{ return (n % 2) == 0; }
// ASCII Section
#define BACKSPACE 8
-#define LF 0x0A
-#define CR 0x0D
+// #define LF 0x0A
+// #define CR 0x0D
#define BELL 0x07
#define SQUOTE '\''