Home
last modified time | relevance | path

Searched refs:s2v (Results 1 – 14 of 14) sorted by relevance

/l4re-core-master/lua/lib/contrib/src/
A Dlvm.c207 TValue *pinit = s2v(ra); in forprep()
208 TValue *plimit = s2v(ra + 1); in forprep()
209 TValue *pstep = s2v(ra + 2); in forprep()
644 if (!(ttisstring(s2v(top - 2)) || cvt2str(s2v(top - 2))) || in luaV_concat()
1043 #define vRB(i) s2v(RB(i))
1046 #define vRC(i) s2v(RC(i))
1172 setivalue(s2v(ra), b); in luaV_execute()
1192 setbfvalue(s2v(ra)); in luaV_execute()
1196 setbfvalue(s2v(ra)); in luaV_execute()
1201 setbtvalue(s2v(ra)); in luaV_execute()
[all …]
A Dlapi.c62 else return s2v(o); in index2value()
66 return s2v(L->top + idx); in index2value()
210 setnilvalue(s2v(level)); in lua_closeslot()
339 luaO_arith(L, op, s2v(L->top - 2), s2v(L->top - 1), L->top - 2); in lua_arith()
493 setnilvalue(s2v(L->top)); in lua_pushnil()
509 setivalue(s2v(L->top), n); in lua_pushinteger()
602 setbtvalue(s2v(L->top)); in lua_pushboolean()
808 t = ttype(s2v(L->top)); in lua_getiuservalue()
834 luaV_finishset(L, t, s2v(L->top - 1), s2v(L->top - 2), slot); in auxsetstr()
859 luaV_finishset(L, t, s2v(L->top - 2), s2v(L->top - 1), slot); in lua_settable()
[all …]
A Dltm.c169 if (l_unlikely(!callbinTM(L, s2v(top - 2), s2v(top - 1), top - 2, in luaT_tryconcatTM()
171 luaG_concaterror(L, s2v(top - 2), s2v(top - 1)); in luaT_tryconcatTM()
204 return !l_isfalse(s2v(L->top)); in luaT_callorderTM()
211 return l_isfalse(s2v(L->top)); in luaT_callorderTM()
250 setnilvalue(s2v(ci->func + i)); /* erase original parameter (for GC) */ in luaT_adjustvarargs()
269 setnilvalue(s2v(where + i)); in luaT_getvarargs()
A Dldo.c102 setnilvalue(s2v(oldtop)); /* no error message */ in luaD_seterrorobj()
166 up->v = s2v((uplevel(up) - oldstack) + newstack); in correctstack()
206 setnilvalue(s2v(newstack + i)); /* erase new segment */ in luaD_reallocstack()
394 luaG_callerror(L, s2v(func)); /* nothing to call */ in luaD_tryfuncTM()
417 setnilvalue(s2v(res)); /* adjust with nil */ in moveresults()
448 setnilvalue(s2v(res + i)); in moveresults()
482 Proto *p = clLvalue(s2v(func))->p; in luaD_pretailcall()
511 switch (ttypetag(s2v(func))) { in luaD_precall()
513 f = clCvalue(s2v(func))->f; in luaD_precall()
516 f = fvalue(s2v(func)); in luaD_precall()
[all …]
A Dlfunc.c69 uv->v = s2v(level); /* current value lives in the stack */ in newupval()
127 const TValue *tm = luaT_gettmbyobj(L, s2v(level), TM_CLOSE); in checkclosemth()
145 TValue *uv = s2v(level); /* value being closed */ in prepcallclosemth()
150 errobj = s2v(level + 1); /* error object goes after 'uv' */ in prepcallclosemth()
171 if (l_isfalse(s2v(level))) in luaF_newtbcupval()
A Dlobject.h127 #define setobjs2s(L,o1,o2) setobj(L,s2v(o1),s2v(o2))
129 #define setobj2s(L,o1,o2) setobj(L,s2v(o1),o2)
159 #define s2v(o) (&(o)->val) macro
260 #define setthvalue2s(L,o,t) setthvalue(L,s2v(o),t)
364 #define setsvalue2s(L,o,s) setsvalue(L,s2v(o),s)
602 #define setclLvalue2s(L,o,cl) setclLvalue(L,s2v(o),cl)
676 #define sethvalue2s(L,o,h) sethvalue(L,s2v(o),h)
A Dldebug.c185 if (clLvalue(s2v(ci->func))->p->is_vararg) { in findvararg()
224 if (!isLfunction(s2v(L->top - 1))) /* not a Lua function? */ in lua_getlocal()
227 name = luaF_getlocalname(clLvalue(s2v(L->top - 1))->p, n, 0); in lua_getlocal()
292 setnilvalue(s2v(L->top)); in collectvalidlines()
390 func = s2v(L->top - 1); in lua_getinfo()
397 func = s2v(ci->func); in lua_getinfo()
652 if (o == s2v(pos)) in isinstack()
768 lua_assert(ttisfunction(s2v(errfunc))); in luaG_errormsg()
A Dlstate.c186 setnilvalue(s2v(L1->stack + i)); /* erase new stack */ in stack_init()
196 setnilvalue(s2v(L1->top)); /* 'function' entry for this 'ci' */ in stack_init()
328 setnilvalue(s2v(L->stack)); /* 'function' entry for basic 'ci' */ in luaE_resetthread()
428 TValue *errobj = s2v(L->top - 1); /* error object */ in luaE_warnerror()
A Dldebug.h18 #define ci_func(ci) (clLvalue(s2v((ci)->func)))
A Dltable.c340 unsigned int i = findindex(L, t, s2v(key), asize); /* find original key */ in luaH_next()
343 setivalue(s2v(key), i + 1); in luaH_next()
351 getnodekey(L, s2v(key), n); in luaH_next()
A Dlobject.c128 if (!luaO_rawarith(L, op, p1, p2, s2v(res))) { in luaO_arith()
535 return svalue(s2v(L->top - 1)); in luaO_pushvfstring()
A Dllex.c141 TValue *stv = s2v(L->top++); /* reserve stack space for string */ in luaX_newstring()
A Dluac.c141 #define toproto(L,i) getproto(s2v(L->top+(i)))
A Dlgc.c631 markvalue(g, s2v(o)); in traversethread()
636 setnilvalue(s2v(o)); /* clear dead stack slice */ in traversethread()

Completed in 30 milliseconds