void lua_getfenv (lua_State *L, int index);

Pushes onto the stack the environment table of the value at the given index.