diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-06-16 16:48:18 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-06-16 16:48:18 -0300 |
| commit | 4d2de484f653fe46ac97fcb7e02f3cc7762cd962 (patch) | |
| tree | d406637e53935cb87239ddc4531147e12a4732b0 /opcode.c | |
| parent | 312f78d9258376473bc21079518db6942f7ff939 (diff) | |
| download | lua-4d2de484f653fe46ac97fcb7e02f3cc7762cd962.tar.gz lua-4d2de484f653fe46ac97fcb7e02f3cc7762cd962.tar.bz2 lua-4d2de484f653fe46ac97fcb7e02f3cc7762cd962.zip | |
"lua_seterrormethod" should return the previous handler.
Diffstat (limited to 'opcode.c')
| -rw-r--r-- | opcode.c | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** TecCGraf - PUC-Rio | 3 | ** TecCGraf - PUC-Rio |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_opcode="$Id: opcode.c,v 4.9 1997/06/16 16:50:22 roberto Exp roberto $"; | 6 | char *rcs_opcode="$Id: opcode.c,v 4.10 1997/06/16 18:42:32 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include <setjmp.h> | 8 | #include <setjmp.h> |
| 9 | #include <stdio.h> | 9 | #include <stdio.h> |
| @@ -667,10 +667,11 @@ lua_Object lua_settagmethod (int tag, char *event, lua_CFunction method) | |||
| 667 | return put_luaObjectonTop(); | 667 | return put_luaObjectonTop(); |
| 668 | } | 668 | } |
| 669 | 669 | ||
| 670 | void lua_seterrormethod (lua_CFunction method) | 670 | lua_Object lua_seterrormethod (lua_CFunction method) |
| 671 | { | 671 | { |
| 672 | lua_pushcfunction(method); | 672 | lua_pushcfunction(method); |
| 673 | do_unprotectedrun(luaI_seterrormethod, 1, 0); | 673 | do_unprotectedrun(luaI_seterrormethod, 1, 1); |
| 674 | return put_luaObjectonTop(); | ||
| 674 | } | 675 | } |
| 675 | 676 | ||
| 676 | 677 | ||
