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

lua_pushcfunction() public static method

Pushes a C function onto the stack. This function receives a pointer to a C function and pushes onto the stack a Lua value of type function that, when called, invokes the corresponding C function.
Any function to be registered in Lua must follow the correct protocol to receive its parameters and return its results
public static lua_pushcfunction ( lua_State L, lua_CFunction f ) : void
L lua_State
f lua_CFunction
return void
        public static void lua_pushcfunction(lua_State L, lua_CFunction f)
        {
            lua_pushcclosure(L, f, 0);
        }
Lua