aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fallback.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/fallback.c b/fallback.c
index 4aed4690..999499de 100644
--- a/fallback.c
+++ b/fallback.c
@@ -3,7 +3,7 @@
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4*/ 4*/
5 5
6char *rcs_fallback="$Id: fallback.c,v 2.5 1997/04/24 22:59:57 roberto Exp roberto $"; 6char *rcs_fallback="$Id: fallback.c,v 2.6 1997/06/09 17:28:14 roberto Exp roberto $";
7 7
8#include <stdio.h> 8#include <stdio.h>
9#include <string.h> 9#include <string.h>
@@ -238,7 +238,14 @@ void luaI_settagmethod (void)
238} 238}
239 239
240 240
241static TObject errorim = {LUA_T_NIL, {NULL}}; 241static void stderrorim (void)
242{
243 lua_Object s = lua_getparam(1);
244 if (lua_isstring(s))
245 fprintf(stderr, "lua: %s\n", lua_getstring(s));
246}
247
248static TObject errorim = {LUA_T_CFUNCTION, {stderrorim}};
242 249
243 250
244TObject *luaI_geterrorim (void) 251TObject *luaI_geterrorim (void)