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

luaL_optstring() public static method

If the function argument narg is a string, returns this string. If this argument is absent or is nil, returns d. Otherwise, raises an error.
public static luaL_optstring ( lua_State L, int n, string d ) : string
L lua_State
n int
d string
return string
        public static string luaL_optstring(lua_State L, int n, string d)
        {
            uint nullValue = 0;
            return luaL_optlstring(L, n, d, ref nullValue);
        }
Lua