diff options
author | Philipp Janda <siffiejoe@gmx.net> | 2017-09-16 15:11:29 +0200 |
---|---|---|
committer | Philipp Janda <siffiejoe@gmx.net> | 2017-09-16 15:11:29 +0200 |
commit | 3b52d81dcf1b5d6d49e1837612e207b2cab6b74d (patch) | |
tree | b01cca67ed685b6b3083ba6aae719eeb3cb54a15 /c-api/compat-5.3.h | |
parent | 8425f997b48b2e2bdef2b2a614472769d92da73f (diff) | |
download | lua-compat-5.3-3b52d81dcf1b5d6d49e1837612e207b2cab6b74d.tar.gz lua-compat-5.3-3b52d81dcf1b5d6d49e1837612e207b2cab6b74d.tar.bz2 lua-compat-5.3-3b52d81dcf1b5d6d49e1837612e207b2cab6b74d.zip |
Add Lua 5.3 version of `lua_load`.
Change `luaL_loadfilex` to use the modified `lua_load` function.
Add more credits to the README.md.
Diffstat (limited to 'c-api/compat-5.3.h')
-rw-r--r-- | c-api/compat-5.3.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/c-api/compat-5.3.h b/c-api/compat-5.3.h index c62d6bf..755c23e 100644 --- a/c-api/compat-5.3.h +++ b/c-api/compat-5.3.h | |||
@@ -174,6 +174,9 @@ COMPAT53_API lua_Number lua_tonumberx (lua_State *L, int i, int *isnum); | |||
174 | #define luaL_checkversion COMPAT53_CONCAT(COMPAT53_PREFIX, L_checkversion) | 174 | #define luaL_checkversion COMPAT53_CONCAT(COMPAT53_PREFIX, L_checkversion) |
175 | COMPAT53_API void luaL_checkversion (lua_State *L); | 175 | COMPAT53_API void luaL_checkversion (lua_State *L); |
176 | 176 | ||
177 | #define lua_load COMPAT53_CONCAT(COMPAT53_PREFIX, _load_53) | ||
178 | COMPAT53_API int lua_load (lua_State *L, lua_Reader reader, void *data, const char* source, const char* mode); | ||
179 | |||
177 | #define luaL_loadfilex COMPAT53_CONCAT(COMPAT53_PREFIX, L_loadfilex) | 180 | #define luaL_loadfilex COMPAT53_CONCAT(COMPAT53_PREFIX, L_loadfilex) |
178 | COMPAT53_API int luaL_loadfilex (lua_State *L, const char *filename, const char *mode); | 181 | COMPAT53_API int luaL_loadfilex (lua_State *L, const char *filename, const char *mode); |
179 | 182 | ||