This commit is contained in:
cooldome 2020-08-04 18:22:35 +01:00 • committed by GitHub
commit ef6358f0b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ template wrap2svoid(op, modop) {.dirty.} =
template wrapDangerous(op, modop) {.dirty.} = template wrapDangerous(op, modop) {.dirty.} =
proc `op Wrapper`(a: VmArgs) {.nimcall.} = proc `op Wrapper`(a: VmArgs) {.nimcall.} =
if defined(nimsuggest) or c.config.cmd == cmdCheck: if vmopsDanger notin c.config.features and (defined(nimsuggest) or c.config.cmd == cmdCheck):
discard discard
else: else:
op(getString(a, 0), getString(a, 1)) op(getString(a, 0), getString(a, 1))