Tao.Lua SDK Documentation

Lua.lua_getstack Method 

Get information about the interpreter runtime stack.

[Visual Basic]
Public Shared Function lua_getstack( _
   ByVal L As IntPtr, _
   ByVal level As Integer, _
   ByVal ar As lua_Debug _
) As Integer
[C#]
public static int lua_getstack(
   IntPtr L,
   int level,
   lua_Debug ar
);

Parameters

L
level
ar

Return Value

When there are no errors, lua_getstack returns 1; when called with a level greater than the stack depth, it returns 0.

Remarks

This function fills parts of a lua_Debug structure with an identification of the activation record of the function executing at a given level. Level 0 is the current running function, whereas level n+1 is the function that has called level n.

See Also

Lua Class | Tao.Lua Namespace