summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2013-06-29 15:31:18 -0500
committerEric Haszlakiewicz <erh+git@nimenees.com>2013-06-29 15:31:18 -0500
commitb3bce4d5943774b59d7fa653da89f48db70d013e (patch)
tree2bf4dcf193c78d4d19d805c43bb7df7800316ebe /debug.h
parentbe002fbb96c484f89aee2c843b89bdd00b0a5e46 (diff)
downloadjson-c-b3bce4d5943774b59d7fa653da89f48db70d013e.tar.gz
Eliminate use of MC_ABORT in json-c code, and mark MC_ABORT/mc_abort deprecated.
Also adjust an error message in json_util to make it unique. Fixes #87.
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/debug.h b/debug.h
index 1e09701..f2dc541 100644
--- a/debug.h
+++ b/debug.h
@@ -23,6 +23,10 @@ extern void mc_set_debug(int debug);
extern int mc_get_debug(void);
extern void mc_set_syslog(int syslog);
+
+/**
+ * @deprecated Use mc_error(), and return an appropriate error.
+ */
extern void mc_abort(const char *msg, ...);
extern void mc_debug(const char *msg, ...);
extern void mc_error(const char *msg, ...);
@@ -48,6 +52,9 @@ extern void mc_info(const char *msg, ...);
#endif
+/**
+ * @deprecated Use MC_ERROR(), and return an appropriate error.
+ */
#define MC_ABORT(x, ...) mc_abort(x, ##__VA_ARGS__)
#define MC_ERROR(x, ...) mc_error(x, ##__VA_ARGS__)