diff options
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 */ |