diff options
author | Philipp Janda <siffiejoe@gmx.net> | 2015-06-14 22:44:46 +0200 |
---|---|---|
committer | Philipp Janda <siffiejoe@gmx.net> | 2015-06-14 22:44:46 +0200 |
commit | c315150aff4496eb50f4b9a4d9da9f7869710d36 (patch) | |
tree | a0cc295bb8db8c62973fff3f6113c6e8c7c469dc /doc | |
parent | 5f8b6461a2deedd0eacd62fc20ea46f944307f7b (diff) | |
download | luafilesystem-c315150aff4496eb50f4b9a4d9da9f7869710d36.tar.gz luafilesystem-c315150aff4496eb50f4b9a4d9da9f7869710d36.tar.bz2 luafilesystem-c315150aff4496eb50f4b9a4d9da9f7869710d36.zip |
Fix detection of closed files on Lua 5.2/5.3.
Lua 5.2 changed the protocol on how to represent closed files: Lua 5.1
sets the file pointer to NULL, Lua 5.2 sets the close function pointer
to NULL (a NULL file pointer now signals an incompletely constructed
object).
Also `luaL_checkudata` never returns NULL, it raises an error instead
if you have an invalid value (no userdata/not correct userdata type).
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions