Tao.Lua SDK Documentation

Lua.luaL_newmetatable Method 

If the registry already has the key tname, returns 0. Otherwise, creates a new table to be used as a metatable for userdata, adds it to the registry with key tname, and returns 1.

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

Parameters

L
tname

Return Value

Remarks

In both cases pushes onto the stack the final value associated with tname in the registry.

See Also

Lua Class | Tao.Lua Namespace