Developer

API Reference

ILua_CreateTable()

Brew Release
Brew MP 1.0.2
Description
Pushes on the Lua stack a new empty table, pre-allocated for nArr array elements and nRec non-array (dictionary) elements. This function is useful when the number of elements in the table is known, otherwise use the helper Lua_NewTable().
Parameters
  • pif
    []:
    a pointer to the ILua object
  • nArr
    []:
    number of array elements to pre-allocate
  • nRec
    []:
    number of non-array/record elements to pre-allocate
Interface
Prototype
   void ILua_CreateTable(ILua *pif, int nArr, int nRec)
  • Follow