diff options
| author | william <william@25tandclement.com> | 2014-09-19 20:06:23 -0700 |
|---|---|---|
| committer | william <william@25tandclement.com> | 2014-09-19 20:06:23 -0700 |
| commit | baddf60a4ee079f2e35141366f9c1ad7e7308875 (patch) | |
| tree | a0761eb96886fb62e9ebb6e372e6ec8f24c1a9eb /src | |
| parent | ad0549dfa0396f495cddbc8c83b37013c0d9ce15 (diff) | |
| download | luaossl-baddf60a4ee079f2e35141366f9c1ad7e7308875.tar.gz luaossl-baddf60a4ee079f2e35141366f9c1ad7e7308875.tar.bz2 luaossl-baddf60a4ee079f2e35141366f9c1ad7e7308875.zip | |
unbreak Lua 5.1 build
Diffstat (limited to 'src')
| -rw-r--r-- | src/compat52.h | 8 |
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 | |||
| 154 | static 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 */ |
