[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: c side package creation
- From: Philipp Kraus <philipp.kraus@...>
- Date: Fri, 7 Dec 2012 13:34:38 +0100
Hello,
I'm using lua_register to register some C function. I can call them in my Lua script. I would like to build packages, something like: mypackage.mysubpackage.myfunction
The functions (functionpointers) read from a DLL, so I know the name of the package, subpackage and the pointer of the function. How can I build the package structure?
Can I add the packagename to the lua_register eg lua_register(L, "package.subpackage.myfunction", funcptr) ?
Thanks
Phil