1 /* $OpenBSD: explain.h,v 1.2 2005/03/28 23:26:51 niallo Exp $ */ 2 3 #ifdef __cplusplus 4 extern "C" { 5 #endif 6 7 #ifndef EXPLAIN 8 #define DEF_Explain 9 #define Explain0(f) 10 #define Explain1(f,a1) 11 #define Explain2(f,a1,a2) 12 #define Explain3(f,a1,a2,a3) 13 #define Explain4(f,a1,a2,a3,a4) 14 #define Explain5(f,a1,a2,a3,a4,a5) 15 #define Explain6(f,a1,a2,a3,a4,a5,a6) 16 #else 17 #include "http_log.h" 18 #define DEF_Explain 19 #define Explain0(f) \ 20 ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, \ 21 f) 22 #define Explain1(f,a1) \ 23 ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, \ 24 f,a1) 25 #define Explain2(f,a1,a2) \ 26 ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, \ 27 f,a1,a2) 28 #define Explain3(f,a1,a2,a3) \ 29 ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, \ 30 f,a1,a2,a3) 31 #define Explain4(f,a1,a2,a3,a4) \ 32 ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, \ 33 f,a1,a2,a3,a4) 34 #define Explain5(f,a1,a2,a3,a4,a5) \ 35 ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, \ 36 f,a1,a2,a3,a4,a5) 37 #define Explain6(f,a1,a2,a3,a4,a5,a6) \ 38 ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, NULL, \ 39 f,a1,a2,a3,a4,a5,a6) 40 41 #endif 42 43 #ifdef __cplusplus 44 } 45 #endif 46