aboutsummaryrefslogtreecommitdiff
path: root/c-api
diff options
context:
space:
mode:
Diffstat (limited to 'c-api')
-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 67e1da6..5c3052b 100644
--- a/c-api/compat-5.3.h
+++ b/c-api/compat-5.3.h
@@ -122,6 +122,9 @@ COMPAT53_API void lua_len (lua_State *L, int i);
122#define lua_pushstring(L, s) \ 122#define lua_pushstring(L, s) \
123 (lua_pushstring(L, (s)), lua_tostring(L, -1)) 123 (lua_pushstring(L, (s)), lua_tostring(L, -1))
124 124
125#define lua_pushlstring(L, s, len) \
126 (lua_pushlstring(L, (s), (len)), lua_tostring(L, -1))
127
125#ifndef luaL_newlibtable 128#ifndef luaL_newlibtable
126# define luaL_newlibtable(L, l) \ 129# define luaL_newlibtable(L, l) \
127 (lua_createtable(L, 0, sizeof(l)/sizeof(*(l))-1)) 130 (lua_createtable(L, 0, sizeof(l)/sizeof(*(l))-1))