swig/Examples/test-suite/python/swigobject.i
Marcelo Matus 32d5addaa6 fix hex pointer conversion
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-03-02 17:52:34 +00:00

25 lines
266 B
OpenEdge ABL

%module swigobject
%inline
{
struct A {
char name[4];
};
const char* pointer_str(A *a){
static char result[1024];
sprintf(result,"%p",a);
return result;
}
A *a_ptr(A *a){
return a;
}
void *v_ptr(void *a){
return a;
}
}