diff options
author | daurnimator <quae@daurnimator.com> | 2017-09-08 18:19:30 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-09-08 18:19:30 +1000 |
commit | c0db566ba0a42d5beebce46ba1af9273c85d7536 (patch) | |
tree | 449168717d1709cc5f540aff32a1faf045fe3c63 | |
parent | 10370263952bb68315206916d94df574991a1d5d (diff) | |
download | lua-compat-5.3-c0db566ba0a42d5beebce46ba1af9273c85d7536.tar.gz lua-compat-5.3-c0db566ba0a42d5beebce46ba1af9273c85d7536.tar.bz2 lua-compat-5.3-c0db566ba0a42d5beebce46ba1af9273c85d7536.zip |
Add LUA_FILEHANDLE define
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | c-api/compat-5.3.h | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -142,6 +142,7 @@ For Lua 5.1 additionally: | |||
142 | For Lua 5.1 additionally: | 142 | For Lua 5.1 additionally: |
143 | * `LUA_OK` | 143 | * `LUA_OK` |
144 | * `LUA_OP*` macros for `lua_arith` and `lua_compare` | 144 | * `LUA_OP*` macros for `lua_arith` and `lua_compare` |
145 | * `LUA_FILEHANDLE` | ||
145 | * `lua_Unsigned` | 146 | * `lua_Unsigned` |
146 | * `lua_absindex` | 147 | * `lua_absindex` |
147 | * `lua_arith` (see [here][19]) | 148 | * `lua_arith` (see [here][19]) |
diff --git a/c-api/compat-5.3.h b/c-api/compat-5.3.h index bee77a1..886b5ba 100644 --- a/c-api/compat-5.3.h +++ b/c-api/compat-5.3.h | |||
@@ -87,6 +87,9 @@ extern "C" { | |||
87 | #ifndef LUA_OPLE | 87 | #ifndef LUA_OPLE |
88 | # define LUA_OPLE 2 | 88 | # define LUA_OPLE 2 |
89 | #endif | 89 | #endif |
90 | #ifndef LUA_FILEHANDLE | ||
91 | # define LUA_FILEHANDLE "FILE*" | ||
92 | #endif | ||
90 | 93 | ||
91 | typedef size_t lua_Unsigned; | 94 | typedef size_t lua_Unsigned; |
92 | 95 | ||