20 struct lua_state *state;
25 void lua_ref_init_state(
struct lua_State *L);
26 void lua_ref_init(
struct lua_ref *ref);
27 bool lua_ref_isvalid(
struct lua_ref *ref);
28 void lua_ref_get(
struct lua_State *state,
struct lua_ref *ref,
int index,
bool weak);
29 bool lua_ref_clear(
struct lua_ref *ref);
30 void lua_ref_push(
struct lua_State *state,
struct lua_ref *ref);