mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-08 22:13:29 +00:00
implement (#15153)
This commit is contained in:
@@ -86,7 +86,7 @@ template wrap2svoid(op, modop) {.dirty.} =
|
||||
|
||||
template wrapDangerous(op, modop) {.dirty.} =
|
||||
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
|
||||
else:
|
||||
op(getString(a, 0), getString(a, 1))
|
||||
|
||||
Reference in New Issue
Block a user