Fix bootstrapping
This commit is contained in:
parent
78b2012a92
commit
2a8d010742
1 changed files with 4 additions and 3 deletions
|
|
@ -85,10 +85,11 @@ template wrap2svoid(op, modop) {.dirty.} =
|
||||||
modop op
|
modop op
|
||||||
|
|
||||||
template wrapDangerous(op, modop) {.dirty.} =
|
template wrapDangerous(op, modop) {.dirty.} =
|
||||||
proc `op Wrapper`(a: VmArgs) {.nimcall.} =
|
if vmopsDanger notin c.config.features and (defined(nimsuggest) or c.config.cmd == cmdCheck):
|
||||||
if vmopsDanger notin c.config.features and (defined(nimsuggest) or c.config.cmd == cmdCheck):
|
proc `op Wrapper`(a: VmArgs) {.nimcall.} =
|
||||||
discard
|
discard
|
||||||
else:
|
else:
|
||||||
|
proc `op Wrapper`(a: VmArgs) {.nimcall.} =
|
||||||
op(getString(a, 0), getString(a, 1))
|
op(getString(a, 0), getString(a, 1))
|
||||||
modop op
|
modop op
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue