c2nim: rewritten symbol exporting code
This commit is contained in:
parent
e6bc065cc5
commit
704663738a
4 changed files with 44 additions and 90 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue