aboutsummaryrefslogtreecommitdiff
path: root/fallback.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-09 16:12:42 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-09 16:12:42 -0200
commitdf0cfc1e19ed220e15bf2c088be21a2ebb7aaad3 (patch)
tree21d20be0d37bfe2d031ac020d5546ef0dfb2e0b5 /fallback.c
parent5f2d187b7385480b5893f7caa2efbf98f76f8578 (diff)
downloadlua-df0cfc1e19ed220e15bf2c088be21a2ebb7aaad3.tar.gz
lua-df0cfc1e19ed220e15bf2c088be21a2ebb7aaad3.tar.bz2
lua-df0cfc1e19ed220e15bf2c088be21a2ebb7aaad3.zip
calls lua_reportbug instead of lua_error, in default fallbacks
Diffstat (limited to 'fallback.c')
-rw-r--r--fallback.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fallback.c b/fallback.c
index 68d052b3..c8bd9736 100644
--- a/fallback.c
+++ b/fallback.c
@@ -3,13 +3,14 @@
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4*/ 4*/
5 5
6char *rcs_fallback="$Id: fallback.c,v 1.1 1994/11/07 15:20:56 roberto Exp roberto $"; 6char *rcs_fallback="$Id: fallback.c,v 1.2 1994/11/08 19:56:39 roberto Exp roberto $";
7 7
8#include <stdio.h> 8#include <stdio.h>
9#include <stdlib.h> 9#include <stdlib.h>
10 10
11#include "fallback.h" 11#include "fallback.h"
12#include "opcode.h" 12#include "opcode.h"
13#include "inout.h"
13#include "lua.h" 14#include "lua.h"
14 15
15 16
@@ -31,24 +32,24 @@ void luaI_indexFB (void)
31 32
32void luaI_gettableFB (void) 33void luaI_gettableFB (void)
33{ 34{
34 lua_error("indexed expression not a table"); 35 lua_reportbug("indexed expression not a table");
35} 36}
36 37
37 38
38void luaI_arithFB (void) 39void luaI_arithFB (void)
39{ 40{
40 lua_error("unexpected type at conversion to number"); 41 lua_reportbug("unexpected type at conversion to number");
41} 42}
42 43
43void luaI_concatFB (void) 44void luaI_concatFB (void)
44{ 45{
45 lua_error("unexpected type at conversion to string"); 46 lua_reportbug("unexpected type at conversion to string");
46} 47}
47 48
48 49
49void luaI_orderFB (void) 50void luaI_orderFB (void)
50{ 51{
51 lua_error("unexpected type at comparison"); 52 lua_reportbug("unexpected type at comparison");
52} 53}
53 54
54 55