mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
14 lines
493 B
Nim
14 lines
493 B
Nim
discard """
|
|
errormsg: "invalid indentation"
|
|
file: "tinvwhen.nim"
|
|
line: 11
|
|
"""
|
|
# 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!".}
|