Tao.Lua SDK Documentation

Lua.lua_setfenv Method 

Pops a table from the stack and sets it as the new environment for the value at the given index.

[Visual Basic]
Public Shared Function lua_setfenv( _
   ByVal L As IntPtr, _
   ByVal idx As Integer _
) As Integer
[C#]
public static int lua_setfenv(
   IntPtr L,
   int idx
);

Parameters

L
idx

Return Value

If the value at the given index is neither a function nor a thread nor a userdata, lua_setfenv returns 0. Otherwise it returns 1.

See Also

Lua Class | Tao.Lua Namespace