CoronaLibraryNewWithFactory()

Revision Release 2024.3703
Keywords iOS, Solar2D Native, C, CoronaLibrary.h, CoronaLibraryNewWithFactory
See also CoronaLibrary.h
CoronaLibraryNew()
Corona C Functions

Overview

Creates a library object by calling the Lua chunk factory and leaves it at the top of the stack.

The factory should return an instance of CoronaLibrary and should set the following table properties:

If factory succeeds, the functions in libFuncs are added in the same manner as CoronaLibraryNew().

Syntax

int CoronaLibraryNewWithFactory(
    lua_State *L,
    lua_CFunction factory,
    const luaL_Reg libFuncs[], void *context )