aboutsummaryrefslogtreecommitdiff
path: root/src/include/stdc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/stdc.h')
-rw-r--r--src/include/stdc.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/include/stdc.h b/src/include/stdc.h
index c8a5228..7a3ad4d 100644
--- a/src/include/stdc.h
+++ b/src/include/stdc.h
@@ -53,20 +53,20 @@
/******************************************************************************/
#ifdef __cplusplus
-namespace AHFinderDirect
- {
namespace jtutil
{
#endif
/*
- * Low-level code in this thorn does error handling with error_exit() .
- * In this this thorn this function is a wrapper around
- * CCTK_VWarn(msg_level, ...)
- * This function is declared to return int so it may be easily used in
- * conditional expressions like
+ * Low-level code in this thorn is done with error_exit() . In this
+ * this thorn it's a wrapper around CCTK_VWarn(msg_level, ...) . It's
+ * declared to return int so it may be easily used in conditional
+ * expressions like
* foo = bar_ok ? baz(bar) : error_exit(...);
*/
+#ifdef __cplusplus
+ extern "C"
+#endif
int error_exit(int msg_level, const char *format, ...)
#ifdef __GNUC__
__attribute__ ((noreturn))
@@ -88,7 +88,6 @@ int error_exit(int msg_level, const char *format, ...)
#ifdef __cplusplus
} /* namespace jtutil */
- } /* namespace AHFinderDirect */
#endif
/******************************************************************************/