summaryrefslogtreecommitdiffstats
path: root/vmop.c
diff options
context:
space:
mode:
Diffstat (limited to 'vmop.c')
-rw-r--r--vmop.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/vmop.c b/vmop.c
index 978db899..34d70fba 100644
--- a/vmop.c
+++ b/vmop.c
@@ -33,6 +33,7 @@
/* static data */
DEFobjStaticHelpers
+DEFobjCurrIf(var)
/* forward definitions */
@@ -69,7 +70,7 @@ CODESTARTobjDebugPrint(vmop)
dbgoprint((obj_t*) pThis, "opcode: %d\t(%s), next %p, var in next line\n", (int) pThis->opcode, pOpcodeName,
pThis->pNext);
if(pThis->operand.pVar != NULL)
- varDebugPrint(pThis->operand.pVar);
+ var.DebugPrint(pThis->operand.pVar);
ENDobjDebugPrint(vmop)
@@ -205,12 +206,14 @@ finalize_it:
ENDobjQueryInterface(vmop)
-
/* Initialize the vmop class. Must be called as the very first method
* before anything else is called inside this class.
* rgerhards, 2008-02-19
*/
BEGINObjClassInit(vmop, 1) /* class, version */
+ /* request objects we use */
+ CHKiRet(objUse(var));
+
OBJSetMethodHandler(objMethod_DEBUGPRINT, vmopDebugPrint);
OBJSetMethodHandler(objMethod_CONSTRUCTION_FINALIZER, vmopConstructFinalize);
ENDObjClassInit(vmop)