diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-05-02 15:43:03 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1995-05-02 15:43:03 -0300 |
| commit | 18ea2eff80c720632cb6a89d560c5cce2377df06 (patch) | |
| tree | 67fc3acd282d134099b2f92657e191baeaff1277 /opcode.c | |
| parent | 8156604823aa487f4436d33fe89302598faab3db (diff) | |
| download | lua-18ea2eff80c720632cb6a89d560c5cce2377df06.tar.gz lua-18ea2eff80c720632cb6a89d560c5cce2377df06.tar.bz2 lua-18ea2eff80c720632cb6a89d560c5cce2377df06.zip | |
calls to "lua_reportbug" changed to "lua_error", since
"lua_reportbug" is only an internal function to build debug information
Diffstat (limited to 'opcode.c')
| -rw-r--r-- | opcode.c | 9 |
1 files changed, 7 insertions, 2 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 3.35 1995/02/10 12:51:29 roberto Exp celes $"; | 6 | char *rcs_opcode="$Id: opcode.c,v 3.36 1995/04/11 17:56:30 celes Exp roberto $"; |
| 7 | 7 | ||
| 8 | #include <setjmp.h> | 8 | #include <setjmp.h> |
| 9 | #include <stdlib.h> | 9 | #include <stdlib.h> |
| @@ -68,9 +68,14 @@ Object *luaI_Address (lua_Object o) | |||
| 68 | ** Error messages | 68 | ** Error messages |
| 69 | */ | 69 | */ |
| 70 | 70 | ||
| 71 | #define MAXMESSAGE MAXFUNCSTACK*80 | ||
| 72 | |||
| 71 | static void lua_message (char *s) | 73 | static void lua_message (char *s) |
| 72 | { | 74 | { |
| 73 | lua_pushstring(s); | 75 | char msg[MAXMESSAGE]; |
| 76 | strcpy (msg, s); | ||
| 77 | luaI_reportbug(msg, MAXMESSAGE-strlen(s)); | ||
| 78 | lua_pushstring(msg); | ||
| 74 | do_call(&luaI_fallBacks[FB_ERROR].function, (top-stack)-1, 0, (top-stack)-1); | 79 | do_call(&luaI_fallBacks[FB_ERROR].function, (top-stack)-1, 0, (top-stack)-1); |
| 75 | } | 80 | } |
| 76 | 81 | ||
