Created
December 5, 2013 01:06
-
-
Save anonymous/7798509 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc scanf(formatstr: cstring) {.importc: "scanf", varargs.} | |
| var tst: int | |
| scanf("%ld", addr(tst)) | |
| write(stdout, tst) | |
| #error: conflicting types for 'scanf' | |
| # N_NIMCALL(void, scanf)(NCSTRING formatstr, ...); | |
| # ^ | |
| #note: in definition of macro 'N_NIMCALL' | |
| # # define N_NIMCALL(rettype, name) rettype __fastcall name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment