aboutsummaryrefslogtreecommitdiff
path: root/c-api/compat-5.3.h
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2017-09-16 15:11:29 +0200
committerPhilipp Janda <siffiejoe@gmx.net>2017-09-16 15:11:29 +0200
commit3b52d81dcf1b5d6d49e1837612e207b2cab6b74d (patch)
treeb01cca67ed685b6b3083ba6aae719eeb3cb54a15 /c-api/compat-5.3.h
parent8425f997b48b2e2bdef2b2a614472769d92da73f (diff)
downloadlua-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.h3
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)
175COMPAT53_API void luaL_checkversion (lua_State *L); 175COMPAT53_API void luaL_checkversion (lua_State *L);
176 176
177#define lua_load COMPAT53_CONCAT(COMPAT53_PREFIX, _load_53)
178COMPAT53_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)
178COMPAT53_API int luaL_loadfilex (lua_State *L, const char *filename, const char *mode); 181COMPAT53_API int luaL_loadfilex (lua_State *L, const char *filename, const char *mode);
179 182