Lines Matching refs:t
146 LUALIB_API void luaL_checktype (lua_State *L, int narg, int t) { in luaL_checktype() argument
147 if (lua_type(L, narg) != t) in luaL_checktype()
148 tag_error(L, narg, t); in luaL_checktype()
302 LUALIB_API void luaL_setn (lua_State *L, int t, int n) { in luaL_setn() argument
303 t = abs_index(L, t); in luaL_setn()
305 lua_rawget(L, t); in luaL_setn()
309 lua_rawset(L, t); in luaL_setn()
313 lua_pushvalue(L, t); in luaL_setn()
321 LUALIB_API int luaL_getn (lua_State *L, int t) { in luaL_getn() argument
323 t = abs_index(L, t); in luaL_getn()
325 lua_rawget(L, t); in luaL_getn()
328 lua_pushvalue(L, t); in luaL_getn()
331 return (int)lua_objlen(L, t); in luaL_getn()
481 LUALIB_API int luaL_ref (lua_State *L, int t) { in luaL_ref() argument
483 t = abs_index(L, t); in luaL_ref()
488 lua_rawgeti(L, t, FREELIST_REF); /* get first free element */ in luaL_ref()
492 lua_rawgeti(L, t, ref); /* remove it from list */ in luaL_ref()
493 lua_rawseti(L, t, FREELIST_REF); /* (t[FREELIST_REF] = t[ref]) */ in luaL_ref()
496 ref = (int)lua_objlen(L, t); in luaL_ref()
499 lua_rawseti(L, t, ref); in luaL_ref()
504 LUALIB_API void luaL_unref (lua_State *L, int t, int ref) { in luaL_unref() argument
506 t = abs_index(L, t); in luaL_unref()
507 lua_rawgeti(L, t, FREELIST_REF); in luaL_unref()
508 lua_rawseti(L, t, ref); /* t[ref] = t[FREELIST_REF] */ in luaL_unref()
510 lua_rawseti(L, t, FREELIST_REF); /* t[FREELIST_REF] = ref */ in luaL_unref()