Tao.Lua SDK Documentation

Lua.luaL_argerror Method 

Raises an error with the following message, where func is retrieved from the call stack:

bad argument #[numarg] to [func] ([extramsg])

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

Parameters

L
numarg
extramsg

Return Value

This function never returns, but it is an idiom to use it in C functions as return luaL_argerror(args).

See Also

Lua Class | Tao.Lua Namespace