new interface to "lua_seterrormethod" and "lua_settagmethod", to

allow the use of Lua functions too.
This commit is contained in:
Roberto Ierusalimschy
1997-06-19 15:03:04 -03:00
parent a38f093f05
commit 88f020b626
5 changed files with 25 additions and 22 deletions

View File

@@ -302,5 +302,6 @@ void iolib_open (void)
lua_tagio = lua_newtag();
lua_infile=stdin; lua_outfile=stdout;
luaL_openlib(iolib, (sizeof(iolib)/sizeof(iolib[0])));
lua_seterrormethod(errorfb);
lua_pushcfunction(errorfb);
lua_seterrormethod();
}