Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/json-c
File: debug.h
/*
[0] Fix | Delete
* $Id: debug.h,v 1.5 2006/01/30 23:07:57 mclark Exp $
[1] Fix | Delete
*
[2] Fix | Delete
* Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
[3] Fix | Delete
* Michael Clark <michael@metaparadigm.com>
[4] Fix | Delete
* Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
[5] Fix | Delete
*
[6] Fix | Delete
* This library is free software; you can redistribute it and/or modify
[7] Fix | Delete
* it under the terms of the MIT license. See COPYING for details.
[8] Fix | Delete
*
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* @file
[13] Fix | Delete
* @brief Do not use, json-c internal, may be changed or removed at any time.
[14] Fix | Delete
*/
[15] Fix | Delete
#ifndef _DEBUG_H_
[16] Fix | Delete
#define _DEBUG_H_
[17] Fix | Delete
[18] Fix | Delete
#include <stdlib.h>
[19] Fix | Delete
[20] Fix | Delete
#ifdef __cplusplus
[21] Fix | Delete
extern "C" {
[22] Fix | Delete
#endif
[23] Fix | Delete
[24] Fix | Delete
extern void mc_set_debug(int debug);
[25] Fix | Delete
extern int mc_get_debug(void);
[26] Fix | Delete
[27] Fix | Delete
extern void mc_set_syslog(int syslog);
[28] Fix | Delete
[29] Fix | Delete
extern void mc_debug(const char *msg, ...);
[30] Fix | Delete
extern void mc_error(const char *msg, ...);
[31] Fix | Delete
extern void mc_info(const char *msg, ...);
[32] Fix | Delete
[33] Fix | Delete
#ifndef __STRING
[34] Fix | Delete
#define __STRING(x) #x
[35] Fix | Delete
#endif
[36] Fix | Delete
[37] Fix | Delete
#ifndef PARSER_BROKEN_FIXED
[38] Fix | Delete
[39] Fix | Delete
#define JASSERT(cond) do {} while(0)
[40] Fix | Delete
[41] Fix | Delete
#else
[42] Fix | Delete
[43] Fix | Delete
#define JASSERT(cond) do { \
[44] Fix | Delete
if (!(cond)) { \
[45] Fix | Delete
mc_error("cjson assert failure %s:%d : cond \"" __STRING(cond) "failed\n", __FILE__, __LINE__); \
[46] Fix | Delete
*(int *)0 = 1;\
[47] Fix | Delete
abort(); \
[48] Fix | Delete
}\
[49] Fix | Delete
} while(0)
[50] Fix | Delete
[51] Fix | Delete
#endif
[52] Fix | Delete
[53] Fix | Delete
#define MC_ERROR(x, ...) mc_error(x, ##__VA_ARGS__)
[54] Fix | Delete
[55] Fix | Delete
#ifdef MC_MAINTAINER_MODE
[56] Fix | Delete
#define MC_SET_DEBUG(x) mc_set_debug(x)
[57] Fix | Delete
#define MC_GET_DEBUG() mc_get_debug()
[58] Fix | Delete
#define MC_SET_SYSLOG(x) mc_set_syslog(x)
[59] Fix | Delete
#define MC_DEBUG(x, ...) mc_debug(x, ##__VA_ARGS__)
[60] Fix | Delete
#define MC_INFO(x, ...) mc_info(x, ##__VA_ARGS__)
[61] Fix | Delete
#else
[62] Fix | Delete
#define MC_SET_DEBUG(x) if (0) mc_set_debug(x)
[63] Fix | Delete
#define MC_GET_DEBUG() (0)
[64] Fix | Delete
#define MC_SET_SYSLOG(x) if (0) mc_set_syslog(x)
[65] Fix | Delete
#define MC_DEBUG(x, ...) if (0) mc_debug(x, ##__VA_ARGS__)
[66] Fix | Delete
#define MC_INFO(x, ...) if (0) mc_info(x, ##__VA_ARGS__)
[67] Fix | Delete
#endif
[68] Fix | Delete
[69] Fix | Delete
#ifdef __cplusplus
[70] Fix | Delete
}
[71] Fix | Delete
#endif
[72] Fix | Delete
[73] Fix | Delete
#endif
[74] Fix | Delete
[75] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function