diff options
author | Andreas Rumpf <andreas@andreas-laptop> | 2010-07-22 20:07:49 +0200 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-laptop> | 2010-07-22 20:07:49 +0200 |
commit | 704663738ada74976130fc999e2912fbe7962220 (patch) | |
tree | 46187e3113bbcf322f728cbe80a0f8621698a645 /rod/c2nim/tests | |
parent | e6bc065cc51ceac27b13403856c4ee307d9eb276 (diff) | |
download | Nim-704663738ada74976130fc999e2912fbe7962220.tar.gz |
c2nim: rewritten symbol exporting code
Diffstat (limited to 'rod/c2nim/tests')
-rw-r--r-- | rod/c2nim/tests/systest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rod/c2nim/tests/systest.c b/rod/c2nim/tests/systest.c index 0cd174dc8..f6ccaeb0f 100644 --- a/rod/c2nim/tests/systest.c +++ b/rod/c2nim/tests/systest.c @@ -130,6 +130,7 @@ int IupConvertXYToPos(PIhandle ih, int x, int y); #ifdef C2NIM # def EXTERN(x) static x + # def TWO_ARGS(x, y) x* y #endif // parses now! EXTERN(int) f(void); @@ -141,6 +142,9 @@ int IupConvertXYToPos(PIhandle ih, int x, int y); EXPORT int f(void); EXPORT int g(void); + static TWO_ARGS(int, x) = TWO_ARGS(56, 45); + + # define abc 34 # define xyz 42 |