Tao.Lua SDK Documentation

Lua.luaL_typerror Method 

Generates an error with a message.

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

Parameters

L
narg
tname

Return Value

Remarks

Generates an error with a message like: [location]: bad argument [narg] to [function] ([tname] expected, got [realt]) where [location] is produced by luaL_where, [function] is the name of the current function, and [realt] is the type name of the actual argument.

See Also

Lua Class | Tao.Lua Namespace