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 /vmop.c | |
parent | cd848d018172b7fac89997a569adc9a01c5953b1 (diff) | |
download | rsyslog-2e0e356584559b1a45bce430f9a92485b5763eac.tar.gz rsyslog-2e0e356584559b1a45bce430f9a92485b5763eac.tar.xz rsyslog-2e0e356584559b1a45bce430f9a92485b5763eac.zip |
used new classes in expr.c
Diffstat (limited to 'vmop.c')
-rw-r--r-- | vmop.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -58,6 +58,13 @@ CODESTARTobjDestruct(vmop) ENDobjDestruct(vmop) +/* destructor for the vmop object */ +BEGINobjDebugPrint(vmop) /* be sure to specify the object type also in END and CODESTART macros! */ +CODESTARTobjDebugPrint(vmop) + dbgoprint((obj_t*) pThis, "operation: %d, next %p\n", (int) pThis->opcode, pThis->pNext); +ENDobjDebugPrint(vmop) + + /* set operand (variant case) * rgerhards, 2008-02-20 */ @@ -90,6 +97,7 @@ vmopSetOpcode(vmop_t *pThis, opcode_t opcode) * rgerhards, 2008-02-19 */ BEGINObjClassInit(vmop, 1) /* class, version */ + OBJSetMethodHandler(objMethod_DEBUGPRINT, vmopDebugPrint); OBJSetMethodHandler(objMethod_CONSTRUCTION_FINALIZER, vmopConstructFinalize); ENDObjClassInit(vmop) |