Brew MP 1.0.2
Pops a table from the stack and sets it as the environment for the
function, thread or userdata value at the given valid index.
AEEResult ILua_SetFEnv(ILua *pif, int nIndex)
Returns AEE_SUCCESS if the environment was set, otherwise
returns AEE_EINVALIDITEM if the value at the given index is neither
a function, a thread nor a userdata. In either case the table is
popped from the top of the stack.