c2nim: rewritten symbol exporting code

This commit is contained in:
Andreas Rumpf 2010-07-22 20:07:49 +02:00
commit 704663738a
4 changed files with 44 additions and 90 deletions

View file

@ -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