diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-09 16:12:42 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-09 16:12:42 -0200 |
| commit | df0cfc1e19ed220e15bf2c088be21a2ebb7aaad3 (patch) | |
| tree | 21d20be0d37bfe2d031ac020d5546ef0dfb2e0b5 | |
| parent | 5f2d187b7385480b5893f7caa2efbf98f76f8578 (diff) | |
| download | lua-df0cfc1e19ed220e15bf2c088be21a2ebb7aaad3.tar.gz lua-df0cfc1e19ed220e15bf2c088be21a2ebb7aaad3.tar.bz2 lua-df0cfc1e19ed220e15bf2c088be21a2ebb7aaad3.zip | |
calls lua_reportbug instead of lua_error, in default fallbacks
| -rw-r--r-- | fallback.c | 11 |
1 files changed, 6 insertions, 5 deletions
| @@ -3,13 +3,14 @@ | |||
| 3 | ** TecCGraf - PUC-Rio | 3 | ** TecCGraf - PUC-Rio |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_fallback="$Id: fallback.c,v 1.1 1994/11/07 15:20:56 roberto Exp roberto $"; | 6 | char *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 | ||
| 32 | void luaI_gettableFB (void) | 33 | void 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 | ||
| 38 | void luaI_arithFB (void) | 39 | void 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 | ||
| 43 | void luaI_concatFB (void) | 44 | void 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 | ||
| 49 | void luaI_orderFB (void) | 50 | void 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 | ||
