summaryrefslogtreecommitdiffstats
path: root/obj-types.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-20 17:08:27 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-20 17:08:27 +0000
commit2e0e356584559b1a45bce430f9a92485b5763eac (patch)
treee85881c5f6adb0a98bf91e3cd2f2e39c53a0bde8 /obj-types.h
parentcd848d018172b7fac89997a569adc9a01c5953b1 (diff)
downloadrsyslog-2e0e356584559b1a45bce430f9a92485b5763eac.tar.gz
rsyslog-2e0e356584559b1a45bce430f9a92485b5763eac.tar.xz
rsyslog-2e0e356584559b1a45bce430f9a92485b5763eac.zip
used new classes in expr.c
Diffstat (limited to 'obj-types.h')
-rw-r--r--obj-types.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/obj-types.h b/obj-types.h
index a473060d..6fce1f8f 100644
--- a/obj-types.h
+++ b/obj-types.h
@@ -231,5 +231,25 @@ finalize_it: \
}
+/* this defines the debug print entry point. DebugPrint is optional. If
+ * it is provided, the object should output some meaningful information
+ * via the debug system.
+ * rgerhards, 2008-02-20
+ */
+#define PROTOTYPEObjDebugPrint(obj) rsRetVal obj##DebugPrint(obj##_t *pThis)
+#define BEGINobjDebugPrint(obj) \
+ rsRetVal obj##DebugPrint(obj##_t *pThis) \
+ { \
+ DEFiRet; \
+
+#define CODESTARTobjDebugPrint(obj) \
+ ASSERT(pThis != NULL); \
+ ISOBJ_TYPE_assert(pThis, obj); \
+
+#define ENDobjDebugPrint(obj) \
+ RETiRet; \
+ }
+
+
#endif /* #ifndef OBJ_TYPES_H_INCLUDED */