Initial import
This commit is contained in:
commit
405b86068e
324 changed files with 163599 additions and 0 deletions
8
tests/tinvwhen.nim
Executable file
8
tests/tinvwhen.nim
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
# This was parsed even though it should not!
|
||||
|
||||
proc chdir(path: CString): cint {.import: "chdir", header: "dirHeader".}
|
||||
|
||||
proc getcwd(buf: CString, buflen: cint): CString
|
||||
when defined(unix): {.import: "getcwd", header: "<unistd.h>".} #ERROR
|
||||
elif defined(windows): {.import: "getcwd", header: "<direct.h>"}
|
||||
else: {.error: "os library not ported to your OS. Please help!".}
|
||||
Loading…
Add table
Add a link
Reference in a new issue