aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/l52util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/l52util.h b/src/l52util.h
index 38a87db..92d9fb8 100644
--- a/src/l52util.h
+++ b/src/l52util.h
@@ -4,6 +4,18 @@
4#include "lua.h" 4#include "lua.h"
5#include "lauxlib.h" 5#include "lauxlib.h"
6 6
7#if LUA_VERSION_NUM >= 503 /* Lua 5.3 */
8
9#ifndef luaL_optint
10# define luaL_optint luaL_optinteger
11#endif
12
13#ifndef luaL_checkint
14# define luaL_checkint luaL_checkinteger
15#endif
16
17#endif
18
7#if LUA_VERSION_NUM >= 502 // lua 5.2 19#if LUA_VERSION_NUM >= 502 // lua 5.2
8 20
9// lua_rawgetp 21// lua_rawgetp