dont use C++ std lib

This commit is contained in:
Jeff Hill
2000-03-01 23:19:25 +00:00
parent 1f57197b5f
commit e3ec00e71d

View File

@@ -9,8 +9,7 @@
#define locationException_h
#include <limits.h>
#include <typeinfo>
#include <iostream>
#include <stdio.h>
#include "cantProceed.h"
@@ -47,9 +46,8 @@ template <class T>
inline void throwExceptionWithLocation (T &parm, const char *pFileName, unsigned lineNo)
{
# ifdef noExceptionsFromCXX
cerr << "C++ exception in file=" << pFileName
<< " at line=" << lineNo
<< " - cant continue";
fprintf (stderr, "C++ exception in file=%s" at line=%u, and no compiler support - cant proceed.\n",
pFileName, lineNo);
cantProceed ("No compiler support for C++ exception");
# else
throw sourceFileLocation<T> (parm, pFileName, lineNo);