aboutsummaryrefslogtreecommitdiff
path: root/c-api/compat-5.3.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add Lua 5.3 version of `lua_load`.Philipp Janda2017-09-161-0/+3
| | | | | Change `luaL_loadfilex` to use the modified `lua_load` function. Add more credits to the README.md.
* Merge branch 'feature/luaL_loadfilebufferx' of ↵Philipp Janda2017-09-161-2/+6
|\ | | | | | | https://github.com/ThePhD/lua-compat-5.3 into ThePhD-feature/luaL_loadfilebufferx
| * implement luaL_loadbufferx and luaL_loadfilexThePhD2017-09-131-2/+6
| |
* | Include lualib.h, remove #define LUA_FILEHANDLE.Philipp Janda2017-09-161-8/+5
| | | | | | | | | | | | | | This avoids warnings about redefinitions when `lualib.h` is included after `compat-5.3.h`. Lua 5.1 only. Also make clear that `COMPAT53_INCLUDE_SOURCE` is an internal macro by undefining it before we use it.
* | Merge branch 'luaL_Stream' of https://github.com/daurnimator/lua-compat-5.3 ↵Philipp Janda2017-09-161-0/+12
|\ \ | | | | | | | | | into daurnimator-luaL_Stream
| * | Add (partial) luaL_Stream definitiondaurnimator2017-09-081-0/+9
| | |
| * | Add LUA_FILEHANDLE definedaurnimator2017-09-081-0/+3
| | |
* | | define LUA_ERRGCMM code for return valuesThePhD2017-09-131-0/+13
| |/ |/|
* | Add lua_resumedaurnimator2017-09-081-0/+3
|/
* Put parens around L macro parameter as well.Philipp Janda2017-08-271-33/+33
| | | | | Lua only reserves the right to evaluate L multiples times after all, *not* that L won't contain commas.
* Provide fixed luaL_tolstring for Lua 5.2 as well.Philipp Janda2017-08-271-3/+3
|
* Add parens around macro arguments.Philipp Janda2017-08-271-34/+34
| | | | Fixes #22.
* Handle lua_pushlstring edge case for Lua 5.2 too.Philipp Janda2017-08-271-0/+3
|
* Handle edge case for lua_pushlstring(). Add test.Philipp Janda2017-08-271-1/+1
|
* Add lua_pushlstring (return value)daurnimator2017-08-261-0/+3
|
* Have lua_pushstring return the pushed stringdaurnimator2017-08-261-0/+3
| | | | Fixes #21
* Fix compilation issues with recent LuaJIT 2.1.Philipp Janda2017-08-071-24/+39
| | | | | | | | Protect macros with `#ifndef`. Use "compat53" prefix instead of "lua" prefix for the mode where static versions of the C API functions are created. Fixes #19.
* Fix lua_len and luaL_len to use lua_Integer.Philipp Janda2016-07-081-1/+1
|
* luaL_checkstack accepts NULL message.v0.3Philipp Janda2015-09-131-0/+3
|
* Fix macro for lua_stringtonumber.Philipp Janda2015-09-071-1/+1
|
* Fix linker problems when compiling as C++.Philipp Janda2015-09-071-0/+6
| | | | | | When compiling compat-5.3.c as C++, the Lua symbols may still have C-linkage. Reference those symbols as `extern "C"` by default and add an option for normal (C++) linkage.
* luaL_newmetatable sets __name on all Lua versions.Philipp Janda2015-07-111-0/+3
|
* Add luaL_execresult to C API.Philipp Janda2015-05-201-1/+3
|
* remove support for luaL_Stream (due to LuaJIT incompatibility)Philipp Janda2015-03-081-13/+0
|
* make LuaJIT support for luaL_Stream interface possiblePhilipp Janda2015-02-141-0/+7
|
* fix typoPhilipp Janda2015-01-231-1/+1
|
* backport Lua 5.2/5.3 buffer API for Lua 5.1Philipp Janda2015-01-211-4/+51
|
* luajit already has yieldable (x)pcall, add tests for code from compat52Philipp Janda2015-01-201-0/+1
|
* add lua_arith and lua_compare for Lua 5.1Philipp Janda2015-01-201-2/+16
|
* add initial implementation of c-api and licensePhilipp Janda2015-01-131-0/+294