mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
calls to "lua_reportbug" changed to "lua_error", since
"lua_reportbug" is only an internal function to build debug information
This commit is contained in:
parent
8156604823
commit
18ea2eff80
6 changed files with 34 additions and 34 deletions
9
opcode.c
9
opcode.c
|
|
@ -3,7 +3,7 @@
|
|||
** TecCGraf - PUC-Rio
|
||||
*/
|
||||
|
||||
char *rcs_opcode="$Id: opcode.c,v 3.35 1995/02/10 12:51:29 roberto Exp celes $";
|
||||
char *rcs_opcode="$Id: opcode.c,v 3.36 1995/04/11 17:56:30 celes Exp roberto $";
|
||||
|
||||
#include <setjmp.h>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -68,9 +68,14 @@ Object *luaI_Address (lua_Object o)
|
|||
** Error messages
|
||||
*/
|
||||
|
||||
#define MAXMESSAGE MAXFUNCSTACK*80
|
||||
|
||||
static void lua_message (char *s)
|
||||
{
|
||||
lua_pushstring(s);
|
||||
char msg[MAXMESSAGE];
|
||||
strcpy (msg, s);
|
||||
luaI_reportbug(msg, MAXMESSAGE-strlen(s));
|
||||
lua_pushstring(msg);
|
||||
do_call(&luaI_fallBacks[FB_ERROR].function, (top-stack)-1, 0, (top-stack)-1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue