API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ILUA_SETFIELD()

Brew Release
Brew MP 1.0.2
See Also
ILua_GetField(), ILua_GetTable(), ILua_SetTable(), ILua_RawSet(), ILua_RawSetI()
Description
Pops the value at the top of the stack and sets it as the value for t[k], where t is the value at the given valid index and k is the given string pszKey. This function may trigger the "newindex" metamethod for the value t; thus t need not necessarily be a table.
Params
pif
[]:
a pointer to the ILua object
nIndex
[]:
the stack index of the "table" value
pszKey
[]:
a string to use as the table key
Interface
Prototype
  •    AEEResult ILua_SetField(ILua *pif, int nIndex, const char *pszKey)