aboutsummaryrefslogtreecommitdiff
path: root/c-api
diff options
context:
space:
mode:
Diffstat (limited to 'c-api')
-rw-r--r--c-api/compat-5.3.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/c-api/compat-5.3.h b/c-api/compat-5.3.h
index 5c3052b..7dd77c6 100644
--- a/c-api/compat-5.3.h
+++ b/c-api/compat-5.3.h
@@ -123,7 +123,7 @@ COMPAT53_API void lua_len (lua_State *L, int i);
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) \ 125#define lua_pushlstring(L, s, len) \
126 (lua_pushlstring(L, (s), (len)), lua_tostring(L, -1)) 126 ((((len) == 0) ? lua_pushlstring(L, "", 0) : lua_pushlstring(L, (s), (len))), lua_tostring(L, -1))
127 127
128#ifndef luaL_newlibtable 128#ifndef luaL_newlibtable
129# define luaL_newlibtable(L, l) \ 129# define luaL_newlibtable(L, l) \