* implements https://github.com/nim-lang/RFCs/issues/260

* added a test case
This commit is contained in:
Andreas Rumpf 2020-10-07 00:09:28 +02:00 • committed by GitHub
commit 51e3e0c7c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 49 additions and 12 deletions

View file

@ -0,0 +1,9 @@
discard """
output: '''34'''
"""
{.compile("cfunction.c", "-DNUMBER_HERE=34").}
proc cfunction(): cint {.importc.}
echo cfunction()