Lines Matching defs:p2
104 const TValue *p2, const TValue *p3) {
108 setobj2s(L, func + 2, p2); /* 2nd argument */
120 const TValue *p2, StkId res) {
125 setobj2s(L, func + 2, p2); /* 2nd argument */
137 static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2,
141 tm = luaT_gettmbyobj(L, p2, event); /* try second operand */
143 luaT_callTMres(L, tm, p1, p2, res);
148 void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
150 if (!callbinTM(L, p1, p2, res, event)) {
154 if (ttisnumber(p1) && ttisnumber(p2))
155 luaG_tointerror(L, p1, p2);
157 luaG_opinterror(L, p1, p2, "perform bitwise operation on");
161 luaG_opinterror(L, p1, p2, "perform arithmetic on");
174 void luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2,
177 luaT_trybinTM(L, p2, p1, res, event);
179 luaT_trybinTM(L, p1, p2, res, event);
200 int luaT_callorderTM (lua_State *L, const TValue *p1, const TValue *p2,
202 if (callbinTM(L, p1, p2, L->top, event)) /* try original event */
206 /* try '!(p2 < p1)' for '(p1 <= p2)' */
208 if (callbinTM(L, p2, p1, L->top, TM_LT)) {
215 luaG_ordererror(L, p1, p2); /* no metamethod found */
222 TValue aux; const TValue *p2;
229 p2 = p1; p1 = &aux; /* correct them */
232 p2 = &aux;
233 return luaT_callorderTM(L, p1, p2, event);