1 /* ------------------------------------------------------------ 2 * Language Object * - Just pass straight through unmodified 3 * ------------------------------------------------------------ */ 4 5 %typemap(in) SWIG_Object "$1 = $input;"; 6 7 %typemap(in,noblock=1) SWIG_Object const & ($*ltype temp) 8 { 9 temp = %static_cast($input, $*ltype); 10 $1 = &temp; 11 } 12 13 %typemap(out,noblock=1) SWIG_Object { 14 %set_output($1); 15 } 16 17 %typemap(out,noblock=1) SWIG_Object const & { 18 %set_output(*$1); 19 } 20 21 %typecheck(SWIG_TYPECHECK_SWIGOBJECT) SWIG_Object "$1 = ($input != 0);"; 22 23 %typemap(throws,noblock=1) SWIG_Object { 24 %raise($1, "$type", 0); 25 } 26 27 %typemap(constcode,noblock=1) SWIG_Object { 28 %set_constant("$symname", $value); 29 } 30 31 #if defined(SWIG_DIRECTOR_TYPEMAPS) 32 33 %typemap(directorin) SWIG_Object "$input = $1;"; 34 %typemap(directorout) SWIG_Object "$result = $input;"; 35 36 #endif /* SWIG_DIRECTOR_TYPEMAPS */ 37 38