Searched refs:nuvalue (Results 1 – 6 of 6) sorted by relevance
/external/lua/src/ |
D | lstring.c | 270 Udata *luaS_newudata (lua_State *L, size_t s, int nuvalue) { in luaS_newudata() argument 274 if (unlikely(s > MAX_SIZE - udatamemoffset(nuvalue))) in luaS_newudata() 276 o = luaC_newobj(L, LUA_VUSERDATA, sizeudata(nuvalue, s)); in luaS_newudata() 279 u->nuvalue = nuvalue; in luaS_newudata() 281 for (i = 0; i < nuvalue; i++) in luaS_newudata()
|
D | lstring.h | 52 LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, int nuvalue);
|
D | lobject.h | 439 unsigned short nuvalue; /* number of user values */ member 458 unsigned short nuvalue; /* number of user values */ member 471 #define getudatamem(u) (cast_charp(u) + udatamemoffset((u)->nuvalue))
|
D | lapi.c | 774 if (n <= 0 || n > uvalue(o)->nuvalue) { in lua_getiuservalue() 948 if (!(cast_uint(n) - 1u < cast_uint(uvalue(o)->nuvalue))) in lua_setiuservalue() 1311 LUA_API void *lua_newuserdatauv (lua_State *L, size_t size, int nuvalue) { in lua_newuserdatauv() argument 1314 api_check(L, 0 <= nuvalue && nuvalue < USHRT_MAX, "invalid value"); in lua_newuserdatauv() 1315 u = luaS_newudata(L, size, nuvalue); in lua_newuserdatauv()
|
D | lgc.c | 134 lua_assert(u->nuvalue > 0); in getgclist() 310 if (u->nuvalue == 0) { /* no user values? */ in reallymarkobject() 561 for (i = 0; i < u->nuvalue; i++) in traverseudata() 564 return 1 + u->nuvalue; in traverseudata() 788 luaM_freemem(L, o, sizeudata(u->nuvalue, u->len)); in freeobj()
|
D | lua.h | 259 LUA_API void *(lua_newuserdatauv) (lua_State *L, size_t sz, int nuvalue);
|