parent
da575bec54
commit
6a1b8e691f
5 changed files with 14 additions and 9 deletions
|
|
@ -43,6 +43,7 @@ proc setupVM*(module: PSym; scriptName: string): PEvalContext =
|
|||
template cbos(name, body) {.dirty.} =
|
||||
result.registerCallback "stdlib.system." & astToStr(name),
|
||||
proc (a: VmArgs) =
|
||||
errorMsg = nil
|
||||
try:
|
||||
body
|
||||
except OSError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue