Tao.Lua SDK Documentation

Lua.luaL_callmeta Method 

Calls a metamethod.

[Visual Basic]
Public Shared Function luaL_callmeta( _
   ByVal L As IntPtr, _
   ByVal obj As Integer, _
   ByVal e As String _
) As Integer
[C#]
public static int luaL_callmeta(
   IntPtr L,
   int obj,
   string e
);

Parameters

L
obj
e

Return Value

Remarks

If the object at index obj has a metatable and this metatable has a field e, this function calls this field and passes the object as its only argument. In this case this function returns 1 and pushes onto the stack the value returned by the call. If there is no metatable or no metamethod, this function returns 0 (without pushing any value on the stack).

See Also

Lua Class | Tao.Lua Namespace