summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwilliam <william@25tandclement.com>2014-09-19 20:06:23 -0700
committerwilliam <william@25tandclement.com>2014-09-19 20:06:23 -0700
commitbaddf60a4ee079f2e35141366f9c1ad7e7308875 (patch)
treea0761eb96886fb62e9ebb6e372e6ec8f24c1a9eb /src
parentad0549dfa0396f495cddbc8c83b37013c0d9ce15 (diff)
downloadluaossl-baddf60a4ee079f2e35141366f9c1ad7e7308875.tar.gz
luaossl-baddf60a4ee079f2e35141366f9c1ad7e7308875.tar.bz2
luaossl-baddf60a4ee079f2e35141366f9c1ad7e7308875.zip
unbreak Lua 5.1 build
Diffstat (limited to 'src')
-rw-r--r--src/compat52.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compat52.h b/src/compat52.h
index 96ec9b2..e64edd9 100644
--- a/src/compat52.h
+++ b/src/compat52.h
@@ -149,4 +149,12 @@ typedef struct luaL_Stream {
149#define lua_rawlen(...) lua_objlen(__VA_ARGS__) 149#define lua_rawlen(...) lua_objlen(__VA_ARGS__)
150 150
151 151
152#define lua_pushstring(...) lua52_pushstring(__VA_ARGS__)
153
154static const char *lua52_pushstring(lua_State *L, const char *s) {
155 lua_pushstring(L, s);
156 return lua_tostring(L, -1);
157} /* lua52_pushstring() */
158
159
152#endif /* LUA_VERSION_NUM < 502 */ 160#endif /* LUA_VERSION_NUM < 502 */