parent
f34ae81971
commit
c0d240b8cd
4 changed files with 70 additions and 14 deletions
|
|
@ -19,6 +19,11 @@ var
|
|||
envComputed {.threadvar.}: bool
|
||||
environment {.threadvar.}: seq[string]
|
||||
|
||||
when defined(nimV2):
|
||||
proc unpairedEnvAllocs*(): int =
|
||||
result = environment.len
|
||||
if result > 0: inc result
|
||||
|
||||
when defined(windows) and not defined(nimscript):
|
||||
# because we support Windows GUI applications, things get really
|
||||
# messy here...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue