Skip to main content
Wraps a standard Lua function in a C closure wrapper. This hides the function’s internal Lua state and prevents detection by checks that inspect function types (like iscclosure).

Parameters

Returns

function - The wrapped C closure.

Example