PageRenderTime 19ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/test-suite/langobj.i

#
Swig | 41 lines | 26 code | 15 blank | 0 comment | 0 complexity | 33a8015ec7e12a304f15850524942c46 MD5 | raw file
 1%module langobj
 2
 3
 4#ifndef SWIG_Object
 5#define SWIG_Object void *
 6#endif
 7
 8
 9%inline %{
10
11#ifdef SWIGTCL
12#define SWIG_Object Tcl_Obj *
13#endif
14
15#ifdef SWIGPYTHON
16#define SWIG_Object PyObject *
17#endif
18
19#ifdef SWIGRUBY
20#define SWIG_Object VALUE
21#endif
22
23#ifndef SWIG_Object
24#define SWIG_Object void *
25#endif
26
27%}
28
29
30%inline {
31
32  SWIG_Object identity(SWIG_Object x) {
33#ifdef SWIGPYTHON
34    Py_XINCREF(x);
35#endif
36    return x;    
37  }
38
39}
40
41