json-c  0.14
Macros | Functions
/builddir/build/BUILD/json-c-json-c-0.14-20200419/debug.h File Reference

Do not use, json-c internal, may be changed or removed at any time. More...

Macros

#define JSON_EXPORT   extern
 
#define __STRING(x)   #x
 
#define JASSERT(cond)
 
#define MC_ERROR(x, ...)   mc_error(x, ##__VA_ARGS__)
 
#define MC_SET_DEBUG(x)
 
#define MC_GET_DEBUG()   (0)
 
#define MC_SET_SYSLOG(x)
 
#define MC_DEBUG(x, ...)
 
#define MC_INFO(x, ...)
 

Functions

JSON_EXPORT void mc_set_debug (int debug)
 
JSON_EXPORT int mc_get_debug (void)
 
JSON_EXPORT void mc_set_syslog (int syslog)
 
JSON_EXPORT void mc_debug (const char *msg,...)
 
JSON_EXPORT void mc_error (const char *msg,...)
 
JSON_EXPORT void mc_info (const char *msg,...)
 

Detailed Description

Do not use, json-c internal, may be changed or removed at any time.

Macro Definition Documentation

◆ __STRING

#define __STRING (   x)    #x

◆ JASSERT

#define JASSERT (   cond)
Value:
do \
{ \
} while (0)

◆ JSON_EXPORT

#define JSON_EXPORT   extern

◆ MC_DEBUG

#define MC_DEBUG (   x,
  ... 
)
Value:
if (0) \
mc_debug(x, ##__VA_ARGS__)

◆ MC_ERROR

#define MC_ERROR (   x,
  ... 
)    mc_error(x, ##__VA_ARGS__)

◆ MC_GET_DEBUG

#define MC_GET_DEBUG ( )    (0)

◆ MC_INFO

#define MC_INFO (   x,
  ... 
)
Value:
if (0) \
mc_info(x, ##__VA_ARGS__)

◆ MC_SET_DEBUG

#define MC_SET_DEBUG (   x)
Value:
if (0) \
mc_set_debug(x)

◆ MC_SET_SYSLOG

#define MC_SET_SYSLOG (   x)
Value:
if (0) \
mc_set_syslog(x)

Function Documentation

◆ mc_debug()

JSON_EXPORT void mc_debug ( const char *  msg,
  ... 
)

◆ mc_error()

JSON_EXPORT void mc_error ( const char *  msg,
  ... 
)

◆ mc_get_debug()

JSON_EXPORT int mc_get_debug ( void  )

◆ mc_info()

JSON_EXPORT void mc_info ( const char *  msg,
  ... 
)

◆ mc_set_debug()

JSON_EXPORT void mc_set_debug ( int  debug)

◆ mc_set_syslog()

JSON_EXPORT void mc_set_syslog ( int  syslog)