new feature: --staticBoundChecks:on to enforce static array index checking (#10965)
This commit is contained in:
parent
ed263e174e
commit
3f29911a94
16 changed files with 152 additions and 50 deletions
|
|
@ -182,6 +182,7 @@ proc getModule*(s: PSym): PSym =
|
|||
assert((result.kind == skModule) or (result.owner != result))
|
||||
while result != nil and result.kind != skModule: result = result.owner
|
||||
|
||||
proc fromSystem*(op: PSym): bool {.inline.} = sfSystemModule in getModule(op).flags
|
||||
proc getSymFromList*(list: PNode, ident: PIdent, start: int = 0): PSym =
|
||||
for i in start..<list.len:
|
||||
if list[i].kind == nkSym:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue