bugfix: 'defined/compiles' open an implicit mixin scope in generics
This commit is contained in:
parent
a71c5f98ea
commit
4892d6929a
4 changed files with 15 additions and 8 deletions
|
|
@ -169,12 +169,14 @@ var
|
|||
disabled: int
|
||||
|
||||
proc disableProfiling*() =
|
||||
atomicDec disabled
|
||||
system.profilerHook = nil
|
||||
when defined(system.TStackTrace):
|
||||
atomicDec disabled
|
||||
system.profilerHook = nil
|
||||
|
||||
proc enableProfiling*() =
|
||||
if atomicInc(disabled) >= 0:
|
||||
system.profilerHook = hook
|
||||
when defined(system.TStackTrace):
|
||||
if atomicInc(disabled) >= 0:
|
||||
system.profilerHook = hook
|
||||
|
||||
when defined(system.TStackTrace):
|
||||
system.profilerHook = hook
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue