diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-04-18 02:05:37 +0000 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-04-18 02:05:37 +0000 |
commit | 23ddcbd4dabec90ec4a8b175fcf5aae9aa0e429a (patch) | |
tree | 4b8ce06075045b42cdc52fd735bbccb024d88ddc /json_util.h | |
parent | 5cc11289b4e7c1f74e1528278185ba91a8d8f44d (diff) | |
download | json-c-23ddcbd4dabec90ec4a8b175fcf5aae9aa0e429a.tar.gz |
Make json_abort() internal to json_object.c
Diffstat (limited to 'json_util.h')
-rw-r--r-- | json_util.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/json_util.h b/json_util.h index 0a83d99..2a4b6c1 100644 --- a/json_util.h +++ b/json_util.h @@ -110,23 +110,6 @@ JSON_EXPORT int json_parse_double(const char *buf, double *retval); */ JSON_EXPORT const char *json_type_to_name(enum json_type o_type); -#ifndef JSON_NORETURN -#if defined(_MSC_VER) -#define JSON_NORETURN __declspec(noreturn) -#else -/* 'cold' attribute is for optimization, telling the computer this code - * path is unlikely. - */ -#define JSON_NORETURN __attribute__((noreturn, cold)) -#endif -#endif -/** - * Abort and optionally print a message on standard error. - * This should be used rather than assert() for unconditional abortion - * (in particular for code paths which are never supposed to be run). - * */ -JSON_NORETURN JSON_EXPORT void json_abort(const char *message); - #ifdef __cplusplus } #endif |