]> git.ipfire.org Git - thirdparty/json-c.git/blob - debug.h
* printbuf.c - C. Watford (christopher dot watford at gmail dot com)
[thirdparty/json-c.git] / debug.h
1 /*
2 * $Id: debug.h,v 1.3 2005/06/14 22:41:51 mclark Exp $
3 *
4 * Copyright Metaparadigm Pte. Ltd. 2004.
5 * Michael Clark <michael@metaparadigm.com>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public (LGPL)
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details: http://www.gnu.org/
16 *
17 */
18
19 #ifndef _DEBUG_H_
20 #define _DEBUG_H_
21
22 #include "config.h"
23
24 #if HAVE_STRERROR
25 #define errstr strerror(errno)
26 #else /* !HAVE_STRERROR */
27 #define errstr
28 #endif /* HAVE_STRERROR */
29
30 extern void mc_set_debug(int debug);
31 extern int mc_get_debug();
32
33 extern void mc_set_syslog(int syslog);
34 extern void mc_abort(const char *msg, ...);
35 extern void mc_debug(const char *msg, ...);
36 extern void mc_error(const char *msg, ...);
37 extern void mc_info(const char *msg, ...);
38
39 #endif