new function 'luaT_trybiniTM'

to handle tag methods for instructions with immediate integer arguments
This commit is contained in:
Roberto Ierusalimschy
2017-09-27 15:59:08 -03:00
parent 00e728af88
commit 1b10033583
3 changed files with 19 additions and 12 deletions

4
ltm.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: ltm.h,v 2.24 2017/05/13 12:57:20 roberto Exp roberto $
** $Id: ltm.h,v 2.25 2017/06/29 15:06:44 roberto Exp roberto $
** Tag methods
** See Copyright Notice in lua.h
*/
@@ -68,6 +68,8 @@ LUAI_FUNC void luaT_callTMres (lua_State *L, const TValue *f,
const TValue *p1, const TValue *p2, StkId p3);
LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
StkId res, TMS event);
LUAI_FUNC void luaT_trybiniTM (lua_State *L, const TValue *p1, int i2,
int inv, StkId res, TMS event);
LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1,
const TValue *p2, TMS event);