diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/config.h | 3 | ||||
-rw-r--r-- | src/include/stdc.h | 15 |
2 files changed, 8 insertions, 10 deletions
diff --git a/src/include/config.h b/src/include/config.h index 106fc1c..0da3f35 100644 --- a/src/include/config.h +++ b/src/include/config.h @@ -42,8 +42,7 @@ typedef CCTK_INT integer; /* CCTK_VWarn() "warning level" for fatal errors (terminate execution) */ /* note low-level software uses error_exit() instead of CCTK_VWarn(), */ /* with exit codes defined in "stdc.h" */ -#define FATAL_ERROR 0 -#define SERIOUS_WARNING 1 +#define FATAL_ERROR (-1) /******************************************************************************/ 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 /******************************************************************************/ |