diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-03-31 17:59:09 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-03-31 17:59:09 -0300 |
commit | efaaf99c425db615e63b6c5ee56c2878a592e2fa (patch) | |
tree | d8d027e29e98d982b67f645e42fa38c0cc2bde32 /iolib.c | |
parent | f8a571ee356f386ed7b5af898c2d297fd6d295fd (diff) | |
download | lua-efaaf99c425db615e63b6c5ee56c2878a592e2fa.tar.gz lua-efaaf99c425db615e63b6c5ee56c2878a592e2fa.tar.bz2 lua-efaaf99c425db615e63b6c5ee56c2878a592e2fa.zip |
first version of "setglobal" and "getglobal" internal methods.
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 | } |