LuaFuncWeak.this

Creates a new LuaFuncWeak that references a function at index.

struct LuaFuncWeak
this
(
LuaState* lua
,
int index
)

Parameters

lua LuaState*

The lua state to use.

index int

The index of the function.

Throws

Exception if the value at index in the stack isn't a function.

Meta