This commit is contained in:
Araq 2015-02-01 11:58:24 +01:00
commit 903ca78289
2 changed files with 6 additions and 3 deletions

View file

@ -213,6 +213,7 @@ proc newCtx*(module: PSym): PCtx =
proc refresh*(c: PCtx, module: PSym) =
c.module = module
c.prc = PProc(blocks: @[])
c.loopIterations = MaxLoopIterations
proc registerCallback*(c: PCtx; name: string; callback: VmCallback) =
c.callbacks.add((name, callback))