diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-20 17:08:27 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-20 17:08:27 +0000 |
commit | 2e0e356584559b1a45bce430f9a92485b5763eac (patch) | |
tree | e85881c5f6adb0a98bf91e3cd2f2e39c53a0bde8 /obj-types.h | |
parent | cd848d018172b7fac89997a569adc9a01c5953b1 (diff) | |
download | rsyslog-2e0e356584559b1a45bce430f9a92485b5763eac.tar.gz rsyslog-2e0e356584559b1a45bce430f9a92485b5763eac.tar.bz2 rsyslog-2e0e356584559b1a45bce430f9a92485b5763eac.zip |
used new classes in expr.c
Diffstat (limited to 'obj-types.h')
-rw-r--r-- | obj-types.h | 20 |
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 */ |