aboutsummaryrefslogtreecommitdiff
path: root/src/jtutil/error_exit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/jtutil/error_exit.cc')
-rw-r--r--src/jtutil/error_exit.cc17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/jtutil/error_exit.cc b/src/jtutil/error_exit.cc
index ffffa1e..fd8e2d8 100644
--- a/src/jtutil/error_exit.cc
+++ b/src/jtutil/error_exit.cc
@@ -18,12 +18,6 @@
#include "config.h"
#include "stdc.h"
-// everything in this file is inside these namespaces
-namespace AHFinderDirect
- {
-namespace jtutil
- {
-
//******************************************************************************
//
@@ -54,6 +48,9 @@ namespace jtutil
// args... = (in) Any additional arguments are (presumably) used in formatting
// the error message string.
//
+namespace jtutil
+ {
+extern "C"
/*VARARGS*/
int error_exit(int msg_level, const char *format, ...)
{
@@ -78,14 +75,10 @@ if ((len > 0) && (buffer[len-1] == '\n'))
then abort();
else exit(msg_level);
#else
- CCTK_VWarn(msg_level, __LINE__, __FILE__, CCTK_THORNSTRING, "%s", buffer);
+ CCTK_VWarn(0, __LINE__, __FILE__, CCTK_THORNSTRING, "%s", buffer);
#endif
// if we got here, evidently msg_level wasn't drastic enough
abort(); /*NOTREACHED*/
}
-
-//******************************************************************************
-
- } // namespace jtutil
- } // namespace AHFinderDirect
+ } // namespace jtutil::