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

Developer

API Reference

LUA_ISFUNCTION

Brew Release
Brew MP 1.0.2
See Also
ILua_PCall(), ILua_PushILuaFunction(), ILuaEx_Call(), ILuaEx_PushCClosure(), ILuaEx_PushCFunction()
Description
This function returns true if the value at the given acceptable index on the Lua stack is a callable function.
Params
pif
[]:
a pointer to the ILua object
nIndex
[]:
the stack index of the value to check
pb
[]:
a pointer to the boolean output to be set on return
Prototype
  •    AEEResult Lua_IsFunction(ILua *pif, int nIndex, boolean *pb)
    
Return
  • AEE_SUCCESS: if the item was able to be identified, otherwise an error code.