1 // SWIG Objective-C configuration file
5 // This file provides support to Objective-C parsing and
6 // should be included with just about any Objective-C module
12 -(char *) name; // Get object name
16 typedef Object *id; // Make 'id' behave like any other "Object"
18 // Typemaps to make *id work like kind of like a void pointer
20 %typemap(python,in) id {
22 if (!PyString_Check($source)) {
23 PyErr_SetString(PyExc_TypeError,"Expecting an 'id' in argument $argnum of $name");
26 temp = PyString_AsString($source);
27 if (SWIG_GetPtr(temp, (void **) &$target, 0)) {
28 PyErr_SetString(PyExc_TypeError,"Expecting an 'id' in argument $argnum of $name");
34 if (SWIG_GetPtr($source,(void **) &$target, 0)) {
35 Tcl_SetResult(interp,"Expecting an 'id' in argument $argnum of $name",TCL_STATIC);
40 %typemap(tcl8,in) id {
41 if (SWIG_GetPointerObj(interp, $source, (void **) &$target, 0)) {
42 Tcl_SetStringObj(result_obj, "Expecting an 'id' in argument $argnum of $name");
46 %typemap(perl5,in) id {
47 if (SWIG_GetPtr($source, (void **) &$target, 0)) {
48 croak("Expecting an 'id' in argument $argnum of $name");