CoronaLuaNewRef()

Revision Release 2024.3703
Keywords iOS, Solar2D Native, C, CoronaLua.h, CoronaLuaNewRef
See also CoronaLua.h
Corona C Functions

Overview

Returns a new CoronaLuaRef object which holds a reference to the Lua object on the Lua stack at index. You can use this to store and access Lua objects from native code.

Syntax

CoronaLuaRef CoronaLuaNewRef( lua_State *L, int index )