diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-06-19 15:03:04 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-06-19 15:03:04 -0300 |
| commit | 88f020b626d1b5b10b5d12e04bf103409a5e4308 (patch) | |
| tree | e8d65e90ce914acebbd74c528b660db21ef27084 /iolib.c | |
| parent | a38f093f0540bce0207bb2dc27f1779f41c6d48b (diff) | |
| download | lua-88f020b626d1b5b10b5d12e04bf103409a5e4308.tar.gz lua-88f020b626d1b5b10b5d12e04bf103409a5e4308.tar.bz2 lua-88f020b626d1b5b10b5d12e04bf103409a5e4308.zip | |
new interface to "lua_seterrormethod" and "lua_settagmethod", to
allow the use of Lua functions too.
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 | } |
