/[adonthell]/adonthell-0.3/src/py_adonthell.i
ViewVC logotype

Diff of /adonthell-0.3/src/py_adonthell.i

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.40 by ksterker, Sat Apr 16 17:56:32 2005 UTC revision 1.41 by ksterker, Sun Apr 17 11:35:12 2005 UTC
# Line 64  Line 64 
64  enum {Python = 1, C = 0};  enum {Python = 1, C = 0};
65    
66  // pass an instance to python  // pass an instance to python
67  PyObject *pass_instance (void *instance, const char* class_name)  PyObject *get_py_obj (void *instance, const char* class_name)
68  {  {
69      swig_type_info * ti = SWIG_TypeQuery (class_name);      swig_type_info * ti = SWIG_TypeQuery (class_name);
70      if (ti) return SWIG_NewPointerObj (instance, ti, C);      if (ti) return SWIG_NewPointerObj (instance, ti, C);
71      else printf ("*** pass_instance: Type '%s' not known to SWIG!\n", class_name);      else printf ("*** get_py_obj: Type '%s' not known to SWIG!\n", class_name);
72      return NULL;      return NULL;
73  }  }
74    

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26