diff options
Diffstat (limited to 'iolib.c')
-rw-r--r-- | iolib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -340,5 +340,5 @@ void iolib_open (void) | |||
340 | lua_tagio = lua_newtag("userdata"); | 340 | lua_tagio = lua_newtag("userdata"); |
341 | lua_infile=stdin; lua_outfile=stdout; | 341 | lua_infile=stdin; lua_outfile=stdout; |
342 | luaL_openlib(iolib, (sizeof(iolib)/sizeof(iolib[0]))); | 342 | luaL_openlib(iolib, (sizeof(iolib)/sizeof(iolib[0]))); |
343 | lua_setglobalmethod("error", errorfb); | 343 | lua_seterrormethod(errorfb); |
344 | } | 344 | } |