Revision Release 2024.3703 Keywords iOS, Solar2D Native, C, CoronaLua.h, CoronaLuaRegisterModuleLoader See also CoronaLua.h CoronaLuaRegisterModuleLoaders() Corona C Functions
Registers loader
corresponding to module name
. You can pass state variables to the loader by pushing those values on to the Lua stack and specifying the number of values via nupvalues
.
Similar to lua_pushcclosure()
, this function will pop nupvalues
from the stack.
void CoronaLuaRegisterModuleLoader( lua_State *L, const char *name, lua_CFunction loader, int nupvalues = 0 )