refactorings (#20536)
* refactoring * refactoring: removed unused macroUsagesSection * enum instead of bool for better readability
This commit is contained in:
parent
e290b028ab
commit
08ae3467b9
9 changed files with 16 additions and 16 deletions
|
|
@ -2252,7 +2252,7 @@ proc genProc(c: PCtx; s: PSym): int =
|
|||
c.procToCodePos[s.id] = result
|
||||
# thanks to the jmp we can add top level statements easily and also nest
|
||||
# procs easily:
|
||||
let body = transformBody(c.graph, c.idgen, s, cache = not isCompileTimeProc(s))
|
||||
let body = transformBody(c.graph, c.idgen, s, if isCompileTimeProc(s): dontUseCache else: useCache)
|
||||
let procStart = c.xjmp(body, opcJmp, 0)
|
||||
var p = PProc(blocks: @[], sym: s)
|
||||
let oldPrc = c.prc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue