mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
9 lines
417 B
Nim
9 lines
417 B
Nim
# This was parsed even though it should not!
|
|
|
|
proc chdir(path: CString): cint {.importc: "chdir", header: "dirHeader".}
|
|
|
|
proc getcwd(buf: CString, buflen: cint): CString
|
|
when defined(unix): {.importc: "getcwd", header: "<unistd.h>".} #ERROR_MSG invalid indentation
|
|
elif defined(windows): {.importc: "getcwd", header: "<direct.h>"}
|
|
else: {.error: "os library not ported to your OS. Please help!".}
|