Revision Release 2025.3721 Keywords iOS, Solar2D Native, C, CoronaLibrary.h, CoronaLibraryNew See also CoronaLibrary.h CoronaLibraryNewWithFactory() Corona C Functions
Creates a library object in Lua and leaves it at the top of the stack.
This object is a Lua table that is an instance of CoronaLibrary. It initializes the table with the functions in libFuncs. If context is NULLcontext as the first upvalue. That upvalue is stored as light userdata, so the caller is responsible for the lifetime of this object.
int CoronaLibraryNew(
lua_State *L,
const char *libName, const char *publisherId, int version, int revision,
const luaL_Reg libFuncs[], void *context )