SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Foo, SWIG_OWNER | SWIG_SHADOW) SWIG_NewPointerObj(x, SWIGTYPE_p_Foo, 0)