calls lua_reportbug instead of lua_error, in default fallbacks
This commit is contained in:
1 parent
5f2d187b73
commit
df0cfc1e19
1 file changed
+6
-5
+6
-5
@@ -3,13 +3,14 @@
|
|||||||
** TecCGraf - PUC-Rio
|
** TecCGraf - PUC-Rio
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *rcs_fallback="$Id: fallback.c,v 1.1 1994/11/07 15:20:56 roberto Exp roberto $";
|
char *rcs_fallback="$Id: fallback.c,v 1.2 1994/11/08 19:56:39 roberto Exp roberto $";
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "fallback.h"
|
#include "fallback.h"
|
||||||
#include "opcode.h"
|
#include "opcode.h"
|
||||||
|
#include "inout.h"
|
||||||
#include "lua.h"
|
#include "lua.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -31,24 +32,24 @@ void luaI_indexFB (void)
|
|||||||
|
|
||||||
void luaI_gettableFB (void)
|
void luaI_gettableFB (void)
|
||||||
{
|
{
|
||||||
lua_error("indexed expression not a table");
|
lua_reportbug("indexed expression not a table");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void luaI_arithFB (void)
|
void luaI_arithFB (void)
|
||||||
{
|
{
|
||||||
lua_error("unexpected type at conversion to number");
|
lua_reportbug("unexpected type at conversion to number");
|
||||||
}
|
}
|
||||||
|
|
||||||
void luaI_concatFB (void)
|
void luaI_concatFB (void)
|
||||||
{
|
{
|
||||||
lua_error("unexpected type at conversion to string");
|
lua_reportbug("unexpected type at conversion to string");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void luaI_orderFB (void)
|
void luaI_orderFB (void)
|
||||||
{
|
{
|
||||||
lua_error("unexpected type at comparison");
|
lua_reportbug("unexpected type at comparison");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user