Home
last modified time | relevance | path

Searched refs:nuvalue (Results 1 – 6 of 6) sorted by relevance

/l4re-core-master/lua/lib/contrib/src/
A Dlstring.c258 Udata *luaS_newudata (lua_State *L, size_t s, int nuvalue) { in luaS_newudata() argument
262 if (l_unlikely(s > MAX_SIZE - udatamemoffset(nuvalue))) in luaS_newudata()
264 o = luaC_newobj(L, LUA_VUSERDATA, sizeudata(nuvalue, s)); in luaS_newudata()
267 u->nuvalue = nuvalue; in luaS_newudata()
269 for (i = 0; i < nuvalue; i++) in luaS_newudata()
A Dlstring.h51 LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, int nuvalue);
A Dlobject.h450 unsigned short nuvalue; /* number of user values */ member
469 unsigned short nuvalue; /* number of user values */ member
482 #define getudatamem(u) (cast_charp(u) + udatamemoffset((u)->nuvalue))
A Dlapi.c802 if (n <= 0 || n > uvalue(o)->nuvalue) { in lua_getiuservalue()
974 if (!(cast_uint(n) - 1u < cast_uint(uvalue(o)->nuvalue))) in lua_setiuservalue()
1335 LUA_API void *lua_newuserdatauv (lua_State *L, size_t size, int nuvalue) { in lua_newuserdatauv() argument
1338 api_check(L, 0 <= nuvalue && nuvalue < USHRT_MAX, "invalid value"); in lua_newuserdatauv()
1339 u = luaS_newudata(L, size, nuvalue); in lua_newuserdatauv()
A Dlgc.c134 lua_assert(u->nuvalue > 0); in getgclist()
309 if (u->nuvalue == 0) { /* no user values? */ in reallymarkobject()
560 for (i = 0; i < u->nuvalue; i++) in traverseudata()
563 return 1 + u->nuvalue; in traverseudata()
790 luaM_freemem(L, o, sizeudata(u->nuvalue, u->len)); in freeobj()
A Dlua.h259 LUA_API void *(lua_newuserdatauv) (lua_State *L, size_t sz, int nuvalue);

Completed in 15 milliseconds