summary refs log tree commit diff stats
path: root/tests/tinvwhen.nim
blob: 8dc8cbf5066b8475158c709149bd3b9ed0829650 (plain) (blame)
1
2
3
4
5
6
7
8
# 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!".}