Added `global` pragma that can be used to introduce new global variables from within procs
This commit is contained in:
parent
8d698b2bdd
commit
6d80583d5a
6 changed files with 22 additions and 10 deletions
|
|
@ -221,4 +221,4 @@ proc binaryStrSearch*(x: openarray[string], y: string): int =
|
|||
|
||||
# Can we keep this? I'm using it all the time
|
||||
template nimdbg*: expr = c.filename.endsWith"nimdbg.nim"
|
||||
|
||||
template cnimdbg*: expr = p.module.filename.endsWith"nimdbg.nim"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue