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.
a pointer to the ILua object
the stack index of the function, thread or userdata value
- 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.