diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-31 11:10:24 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-31 11:10:24 -0200 |
| commit | 67c1afff5917b118f3be818dd0df7448d19de877 (patch) | |
| tree | 10b60153e85947af9a1791148b145e0dca82775d /ltests.c | |
| parent | 03770ecfc91718f7a208995adb1f9fd5d8e0c85e (diff) | |
| download | lua-67c1afff5917b118f3be818dd0df7448d19de877.tar.gz lua-67c1afff5917b118f3be818dd0df7448d19de877.tar.bz2 lua-67c1afff5917b118f3be818dd0df7448d19de877.zip | |
lua_settagmethod does not return old tag method
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 1.52 2000/10/26 12:47:05 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.53 2000/10/30 16:29:59 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 | */ |
| @@ -322,8 +322,12 @@ static int doremote (lua_State *L) { | |||
| 322 | } | 322 | } |
| 323 | 323 | ||
| 324 | static int settagmethod (lua_State *L) { | 324 | static int settagmethod (lua_State *L) { |
| 325 | int tag = luaL_check_int(L, 1); | ||
| 326 | const char *event = luaL_check_string(L, 2); | ||
| 325 | luaL_checkany(L, 3); | 327 | luaL_checkany(L, 3); |
| 326 | lua_settagmethod(L, luaL_check_int(L, 1), luaL_check_string(L, 2)); | 328 | lua_gettagmethod(L, tag, event); |
| 329 | lua_pushvalue(L, 3); | ||
| 330 | lua_settagmethod(L, tag, event); | ||
| 327 | return 1; | 331 | return 1; |
| 328 | } | 332 | } |
| 329 | 333 | ||
