%constant and structs support for Lua
This commit is contained in:
parent
3aab2df371
commit
cb4d0dbba5
1 changed files with 3 additions and 0 deletions
|
|
@ -44,6 +44,9 @@
|
|||
%typemap(consttab) SWIGTYPE *, SWIGTYPE *const, SWIGTYPE &, SWIGTYPE &&, SWIGTYPE []
|
||||
{ SWIG_LUA_CONSTTAB_POINTER("$symname",$value, $1_descriptor) }
|
||||
|
||||
%typemap(consttab) SWIGTYPE
|
||||
{ SWIG_LUA_CONSTTAB_POINTER("$symname",&$value, $&1_descriptor) }
|
||||
|
||||
// member function pointers
|
||||
%typemap(consttab) SWIGTYPE (CLASS::*)
|
||||
{ SWIG_LUA_CONSTTAB_BINARY("$symname", sizeof($type),&$value, $1_descriptor) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue