diff options
author | Andreas Rumpf <andreas@andreas-laptop> | 2010-07-23 20:17:12 +0200 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-laptop> | 2010-07-23 20:17:12 +0200 |
commit | 804e2ac89d378b87e0ec8c723f607aa4271c57bb (patch) | |
tree | ead60f389a638029f7c1625b0e8961179119e702 /rod/c2nim/tests/systest2.c | |
parent | 5a2163d71d79943a8fcdb34bef9b0bbecb8b40c7 (diff) | |
download | Nim-804e2ac89d378b87e0ec8c723f607aa4271c57bb.tar.gz |
implemented user-defined pragmas
Diffstat (limited to 'rod/c2nim/tests/systest2.c')
-rw-r--r-- | rod/c2nim/tests/systest2.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/rod/c2nim/tests/systest2.c b/rod/c2nim/tests/systest2.c new file mode 100644 index 000000000..bf3027cfc --- /dev/null +++ b/rod/c2nim/tests/systest2.c @@ -0,0 +1,17 @@ +#ifdef C2NIM +# header "iup.h" +# cdecl +# mangle "'GTK_'{.*}" "TGtk$1" +# mangle "'PGTK_'{.*}" "PGtk$1" +#endif + +typedef struct stupidTAG { + mytype a, b; +} GTK_MyStruct, *PGTK_MyStruct; + +typedef struct { + mytype a, b; +} GTK_MyStruct, *PGTK_MyStruct; + +int IupConvertXYToPos(PIhandle ih, int x, int y); + |