lua

A copy of the Lua development repository
Log | Files | Refs | README

commit d0339e7b726219dfbbf3b19a7cb2429c8b74841e
parent 075b7918c3dcc1e8b4d5e7f19ae213b081e01bf2
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu,  3 Apr 1997 15:24:03 -0300

"setintmethod" returns old method (to be coerent with seterrormethod).
obs: version 2 is due to internal methods.

Diffstat:
Mfallback.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fallback.c b/fallback.c @@ -3,7 +3,7 @@ ** TecCGraf - PUC-Rio */ -char *rcs_fallback="$Id: fallback.c,v 1.37 1997/04/02 22:52:42 roberto Exp roberto $"; +char *rcs_fallback="$Id: fallback.c,v 1.38 1997/04/02 23:04:12 roberto Exp roberto $"; #include <stdio.h> #include <string.h> @@ -243,6 +243,7 @@ void luaI_setintmethod (void) lua_error("cannot change this internal method"); luaL_arg_check(lua_isnil(func) || lua_isfunction(func), "setintmethod", 3, "function expected"); + luaI_pushobject(&luaI_IMtable[-t].int_method[e]); luaI_IMtable[-t].int_method[e] = *luaI_Address(func); }