From 3b52d81dcf1b5d6d49e1837612e207b2cab6b74d Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Sat, 16 Sep 2017 15:11:29 +0200 Subject: 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. --- c-api/compat-5.3.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'c-api/compat-5.3.h') 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); #define luaL_checkversion COMPAT53_CONCAT(COMPAT53_PREFIX, L_checkversion) COMPAT53_API void luaL_checkversion (lua_State *L); +#define lua_load COMPAT53_CONCAT(COMPAT53_PREFIX, _load_53) +COMPAT53_API int lua_load (lua_State *L, lua_Reader reader, void *data, const char* source, const char* mode); + #define luaL_loadfilex COMPAT53_CONCAT(COMPAT53_PREFIX, L_loadfilex) COMPAT53_API int luaL_loadfilex (lua_State *L, const char *filename, const char *mode); -- cgit v1.2.3-55-g6feb