swig/x.i
raw| 1 | /* File : x.i */ |
| 2 | //%module x |
| 3 | |
| 4 | // typemap to map output of fl_xid from Window to long (Fl_Window*) |
| 5 | %typemap(out) Window { |
| 6 | $result = PyLong_FromVoidPtr( (Fl_Window*)$1); |
| 7 | } |
| 8 | |
| 9 | %{ |
| 10 | #include "FL/platform.H" |
| 11 | %} |
| 12 | |
| 13 | %include "FL/platform.H" |
| 14 | |
| 15 | // clear the output typemap |
| 16 | %typemap(out) Window; |
| 17 | |
| 18 |