Fix Lua warning for missing (SWIGTYPE CLASS::*) typemaps for C wrappers
This commit is contained in:
parent
db11e82896
commit
7b9d94db2e
1 changed files with 0 additions and 2 deletions
|
|
@ -235,7 +235,6 @@ $1=($1_ltype)&temp;%}
|
|||
// so the standard wrapping cannot be done
|
||||
// nor can you cast a member function pointer to a void* (obviously)
|
||||
// therefore a special wrapping functions SWIG_ConvertMember() & SWIG_NewMemberObj() were written
|
||||
#ifdef __cplusplus
|
||||
%typemap(in,checkfn="lua_isuserdata") SWIGTYPE (CLASS::*)
|
||||
%{
|
||||
if (!SWIG_IsOK(SWIG_ConvertMember(L,$input,(void*)(&$1),sizeof($type),$descriptor)))
|
||||
|
|
@ -246,7 +245,6 @@ $1=($1_ltype)&temp;%}
|
|||
%{
|
||||
SWIG_NewMemberObj(L,(void*)(&$1),sizeof($type),$descriptor); SWIG_arg++;
|
||||
%}
|
||||
#endif
|
||||
|
||||
|
||||
// void (must be empty without the SWIG_arg++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue