added support for passing function pointers as well as native lua object
into wrappered function added example funcptr3 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9264 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6bf67f2412
commit
db5bb83440
8 changed files with 312 additions and 0 deletions
9
SWIG/Examples/lua/funcptr3/example.h
Normal file
9
SWIG/Examples/lua/funcptr3/example.h
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/* file: example.h */
|
||||
|
||||
extern int do_op(int,int, int (*op)(int,int));
|
||||
extern int add(int,int);
|
||||
extern int sub(int,int);
|
||||
extern int mul(int,int);
|
||||
|
||||
extern int (*funcvar)(int,int);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue