Type C header Revision 2017.3060 Keywords iOS, Corona Enterprise, CoronaLuaIOS.h See also Corona Enterprise — iOS Corona C Functions
CoronaLuaIOS.h
contains additional APIs to help you interact between Lua and
As with CoronaLua.h, all C functions are prefixed with CoronaLua
.
NSDictionary* CoronaLuaCreateDictionary( lua_State *L, int index )
. Creates and returns a NSDictionary
corresponding to the table at index
. This NSDictionary
contains the
int CoronaLuaPushImage( lua_State *L, UIImage *image )
. Creates a display object using image
and pushes it to the top of the stack. If successful, returns 1
indicating that the object was pushed onto the Lua stack; otherwise 0
int CoronaLuaPushValue( lua_State *L, id value )
. Pushes a Lua value onto the top of the stack corresponding to the value
. Returns 1
if a corresponding Lua value can be created; 0
otherwise. The following
NSNumber
→ Lua boolean or Lua number (if not BOOL
, conversion is assumed to be double)NSString
→ Lua stringNSArray
→ Lua table (1
-based, sequential, numerical indices)NSDictionary
→ Lua table