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

lua_register() public static method

Sets the C function f as the new value of global name.
public static lua_register ( lua_State L, string n, lua_CFunction f ) : void
L lua_State
n string
f lua_CFunction
return void
        public static void lua_register(lua_State L, string n, lua_CFunction f)
        {
            lua_pushcfunction(L, f);
            lua_setglobal(L, n);
        }
Lua