mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-22 07:15:22 +00:00
refactor envvars, oserrors; register vmops (#20592)
* refactor envvars, oserrors; register vmops * remove type definitions
This commit is contained in:
@@ -46,6 +46,7 @@ template main =
|
||||
doAssert not existsEnv("NIM_TESTS_TOSENV_PUT=DUMMY_VALUE")
|
||||
doAssert not existsEnv("NIM_TESTS_TOSENV_PUT")
|
||||
|
||||
static: main()
|
||||
main()
|
||||
|
||||
when defined(windows):
|
||||
@@ -69,7 +70,7 @@ when not defined(js) and not defined(nimscript):
|
||||
|
||||
doAssertRaises(OSError): delEnv("foo=bar")
|
||||
|
||||
when defined(windows):
|
||||
when defined(windows) and not defined(nimscript):
|
||||
import std/encodings
|
||||
|
||||
proc c_putenv(env: cstring): int32 {.importc: "putenv", header: "<stdlib.h>".}
|
||||
|
||||
Reference in New Issue
Block a user