Bug fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dc90fff355
commit
9a82fd7b0c
1 changed files with 11 additions and 1 deletions
|
|
@ -20,6 +20,16 @@ extern "C" {
|
||||||
#define SWIG_PY_STRING 3
|
#define SWIG_PY_STRING 3
|
||||||
#define SWIG_PY_POINTER 4
|
#define SWIG_PY_POINTER 4
|
||||||
|
|
||||||
|
/* Constant information structure */
|
||||||
|
typedef struct _swig_const_info {
|
||||||
|
int type;
|
||||||
|
char *name;
|
||||||
|
long lvalue;
|
||||||
|
double dvalue;
|
||||||
|
void *pvalue;
|
||||||
|
_swig_type_info **ptype;
|
||||||
|
} _swig_const_info;
|
||||||
|
|
||||||
#ifdef SWIG_NOINCLUDE
|
#ifdef SWIG_NOINCLUDE
|
||||||
|
|
||||||
SWIGEXPORT(PyObject *) SWIG_newvarlink();
|
SWIGEXPORT(PyObject *) SWIG_newvarlink();
|
||||||
|
|
@ -213,7 +223,7 @@ cobject:
|
||||||
if (ty) {
|
if (ty) {
|
||||||
tc = SWIG_TypeCheck(c,ty);
|
tc = SWIG_TypeCheck(c,ty);
|
||||||
if (!tc) goto type_error;
|
if (!tc) goto type_error;
|
||||||
*ptr = SWIG_TypeCast(tc,p);
|
*ptr = SWIG_TypeCast(tc,(void*)p);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue