- if (_ptr) {
- char swigptr[64];
- SWIG_MakePtr(swigptr, _ptr, "_wxPyInputStream_p");
-
- PyObject* classobj = PyDict_GetItemString(wxPython_dict, "wxInputStreamPtr");
- if (! classobj) {
- Py_INCREF(Py_None);
- $target = Py_None;
- } else {
- PyObject* arg = Py_BuildValue("(s)", swigptr);
- $target = PyInstance_New(classobj, arg, NULL);
- Py_DECREF(arg);
-
- // set ThisOwn
- PyObject_SetAttrString($target, "thisown", PyInt_FromLong(1));
- }
- } else {
- Py_INCREF(Py_None);
- $target = Py_None;
- }