Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1
Ninth release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.
Changes since v0.8:
Eighth release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.
Changes since v0.7: None, but Lua 5.4 is supported.
Seventh release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.
Changes since v0.6:
lua_tointeger(x)
functionstrerror_r
Sixth release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.
Changes since v0.5:
from
parameter to lua_resume
LUA_FILEHANDLE
and luaL_Stream
(partial)mode
parameter to lua_load
luaL_bufferx,
luaL_loadfilex`LUA_ERRGCMM
Fifth release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.
Changes since v0.4:
lua_push(l)string
Fourth release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.
Changes since v0.3:
luaL_tolstring
respects __name
metafieldlua_len
and luaL_len
to use lua_Integer
loadstring
for Lua 5.1os.execute
on WindowsThird release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.
Changes since v0.2:
string.format("%q", ...)
.assert()
can handle non-string errors.io.lines()
, io.read()
,
file:lines()
, and file:read()
.luaL_newmetatable()
sets __name.luaL_checkstack()
accepts NULL
error message.luaL_execresult()
.Second release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.
Main change from the previous version is the split of the compat53
Lua module into two modules. The new compat53.module
can be used by module/scripts authors without interfering with other modules (the global environment and all standard libraries are unmodified) by setting it as a custom environment.
First release of Compat-5.3
, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.
Included in this release:
c-api/compat-5.3.h
and c-api/compat-5.3.c
which can be added to C projects and provide the new Lua 5.3 C APIcompat53
which adds/updates Lua standard functions, to make the Lua standard libraries as close to Lua 5.3 as possible.compat53.utf8
(backported from Lua 5.3, automatically loaded by compat53
) which provides the new utf8
modulecompat53.table
(backported from Lua 5.3, automatically loaded by compat53
) which provides the updated table
functionscompat53.string
(backported from Lua 5.3, automatically loaded by compat53
) which provides the string packing functions of Lua 5.3