aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-05 10:00:17 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-05 10:00:17 -0300
commit046a3d6173792b7d4d4d26a4e063e2fe383c10a7 (patch)
treeefe5a4544585084ab6e8d301847cc8568a1cc955 /ltests.c
parent001f2bdd0e2f8803889c1b5164b57a51e44aef5b (diff)
downloadlua-046a3d6173792b7d4d4d26a4e063e2fe383c10a7.tar.gz
lua-046a3d6173792b7d4d4d26a4e063e2fe383c10a7.tar.bz2
lua-046a3d6173792b7d4d4d26a4e063e2fe383c10a7.zip
tag methods are always functions, so don't need to store a whole object
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/ltests.c b/ltests.c
index 5ceebcb5..e7464e51 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.47 2000/10/02 20:10:55 roberto Exp roberto $ 2** $Id: ltests.c,v 1.48 2000/10/05 12:14:08 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -438,6 +438,16 @@ static int testC (lua_State *L) {
438 else if EQ("dostring") { 438 else if EQ("dostring") {
439 lua_dostring(L, luaL_check_string(L, getnum)); 439 lua_dostring(L, luaL_check_string(L, getnum));
440 } 440 }
441 else if EQ("settagmethod") {
442 int tag = getnum;
443 const char *event = getname;
444 lua_settagmethod(L, tag, event);
445 }
446 else if EQ("gettagmethod") {
447 int tag = getnum;
448 const char *event = getname;
449 lua_gettagmethod(L, tag, event);
450 }
441 else if EQ("type") { 451 else if EQ("type") {
442 lua_pushstring(L, lua_typename(L, lua_type(L, getnum))); 452 lua_pushstring(L, lua_typename(L, lua_type(L, getnum)));
443 } 453 }