diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-10-23 13:57:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-10-23 13:57:25 -0300 |
commit | 0a9aca56caa925c42aaa683b43560357ab736ea4 (patch) | |
tree | fccde4e8cf00c6b7e3563ef3f75c3a28a3f13c64 /liolib.c | |
parent | ea1322ef5438aa38f16fa00d3ab377811bba5a76 (diff) | |
download | lua-github-0a9aca56caa925c42aaa683b43560357ab736ea4.tar.gz |
Added a '__close' metamethod to file handles
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -743,6 +743,7 @@ static const luaL_Reg flib[] = { {"setvbuf", f_setvbuf}, {"write", f_write}, {"__gc", f_gc}, + {"__close", f_gc}, {"__tostring", f_tostring}, {NULL, NULL} }; |