/trunk/Examples/test-suite/langobj.i
Swig | 41 lines | 26 code | 15 blank | 0 comment | 0 complexity | 33a8015ec7e12a304f15850524942c46 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %module langobj
- #ifndef SWIG_Object
- #define SWIG_Object void *
- #endif
- %inline %{
- #ifdef SWIGTCL
- #define SWIG_Object Tcl_Obj *
- #endif
- #ifdef SWIGPYTHON
- #define SWIG_Object PyObject *
- #endif
- #ifdef SWIGRUBY
- #define SWIG_Object VALUE
- #endif
- #ifndef SWIG_Object
- #define SWIG_Object void *
- #endif
- %}
- %inline {
- SWIG_Object identity(SWIG_Object x) {
- #ifdef SWIGPYTHON
- Py_XINCREF(x);
- #endif
- return x;
- }
- }
-