Concatenating an external pointer into a SWIG data structure
I am using Lua with two C libraries, one using SWIG and one using manually.
The library, which is manually wrapped, is the interface to Freetype; it creates pointers
in C which it returns as lightuserdata.
Now I need to pass this
as a parameter to one of the functions that are wrapped by SWIG. However, SWIG certainly does not accept normal user data as parameters, but expects every C pointer to be created by SWIG - even though I have a pointer
, SWIG wants to see
which one is under
Is there a way to include Lua userdata in
? How do I get SWIG to "recognize" my user data
as a valid parameter to a function?
source to share