Tao.Lua SDK Documentation

Lua.lua_pushcfunction 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.

[Visual Basic]
Public Shared Sub lua_pushcfunction( _
   ByVal L As IntPtr, _
   ByVal f As lua_CFunction _
)
[C#]
public static void lua_pushcfunction(
   IntPtr L,
   lua_CFunction f
);

Parameters

L
f

Remarks

Any function to be registered in Lua must follow the correct protocol to receive its parameters and return its results

See Also

Lua Class | Tao.Lua Namespace