diff options
Diffstat (limited to 'iolib.c')
-rw-r--r-- | iolib.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -302,5 +302,6 @@ void iolib_open (void) | |||
302 | lua_tagio = lua_newtag(); | 302 | lua_tagio = lua_newtag(); |
303 | lua_infile=stdin; lua_outfile=stdout; | 303 | lua_infile=stdin; lua_outfile=stdout; |
304 | luaL_openlib(iolib, (sizeof(iolib)/sizeof(iolib[0]))); | 304 | luaL_openlib(iolib, (sizeof(iolib)/sizeof(iolib[0]))); |
305 | lua_seterrormethod(errorfb); | 305 | lua_pushcfunction(errorfb); |
306 | lua_seterrormethod(); | ||
306 | } | 307 | } |