当前位置: 代码迷 >> 综合 >> explain.h
  详细解决方案

explain.h

热度:35   发布时间:2024-01-03 21:38:22.0


#ifdef __cplusplus
extern "C" {
#endif

#ifndef EXPLAIN             ---------------------------------------决定是否定义一些解释的宏
#define DEF_Explain
#define Explain0(f)
#define Explain1(f,a1)
#define Explain2(f,a1,a2)
#define Explain3(f,a1,a2,a3)
#define Explain4(f,a1,a2,a3,a4)
#define Explain5(f,a1,a2,a3,a4,a5)
#define Explain6(f,a1,a2,a3,a4,a5,a6)
#else
#include "http_log.h"
#define DEF_Explain
#define Explain0(f) /
        ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, /
                    f)
#define Explain1(f,a1) /
        ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, /
                    f,a1)
#define Explain2(f,a1,a2) /
        ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, /
                    f,a1,a2)
#define Explain3(f,a1,a2,a3) /
        ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, /
                    f,a1,a2,a3)
#define Explain4(f,a1,a2,a3,a4) /
        ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, /
                    f,a1,a2,a3,a4)
#define Explain5(f,a1,a2,a3,a4,a5)  /
        ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, /
                    f,a1,a2,a3,a4,a5)
#define Explain6(f,a1,a2,a3,a4,a5,a6)   /
        ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, /
                    f,a1,a2,a3,a4,a5,a6)

#endif

#ifdef __cplusplus
}
#endif