Tao.Lua.Lua.luaL_argcheck C# (CSharp) Method

luaL_argcheck() public static method

Checks whether cond is true. If not, raises an error with the following message, where func is retrieved from the call stack: bad argument #[numarg] to [func] ([extramsg])
public static luaL_argcheck ( lua_State L, int cond, int numarg, string extramsg ) : bool
L lua_State
cond int
numarg int
extramsg string
return bool
        public static bool luaL_argcheck(lua_State L, int cond, int numarg, string extramsg)
        {
            return cond > 0 || luaL_argerror(L, numarg, extramsg) > 0;
        }
Lua