/* ** fallback.c ** TecCGraf - PUC-Rio */ char *rcs_fallback="$Id: fallback.c,v 1.2 1994/11/08 19:56:39 roberto Exp roberto $"; #include #include #include "fallback.h" #include "opcode.h" #include "inout.h" #include "lua.h" void luaI_errorFB (void) { lua_Object o = lua_getparam(1); if (lua_isstring(o)) fprintf (stderr, "lua: %s\n", lua_getstring(o)); else fprintf(stderr, "lua: unknown error\n"); } void luaI_indexFB (void) { lua_pushnil(); } void luaI_gettableFB (void) { lua_reportbug("indexed expression not a table"); } void luaI_arithFB (void) { lua_reportbug("unexpected type at conversion to number"); } void luaI_concatFB (void) { lua_reportbug("unexpected type at conversion to string"); } void luaI_orderFB (void) { lua_reportbug("unexpected type at comparison"); } /* ** Lock routines */ static Object *lockArray = NULL; static int lockSize = 0; int lua_lock (lua_Object object) { int i; int oldSize; if (lua_isnil(object)) return -1; for (i=0; i