aboutsummaryrefslogtreecommitdiff
path: root/src/l52util.h
diff options
context:
space:
mode:
authorAlexey Melnichuk <mimir@newmail.ru>2014-02-10 13:40:52 +0400
committerAlexey Melnichuk <mimir@newmail.ru>2014-02-10 13:40:52 +0400
commit0ef254d0d5ea2619a295fe1c3832c886f70e5140 (patch)
treeea8fd89b39a3d2e056f7ff6791c7bfdc2c1bd5b3 /src/l52util.h
parent2238060cdc223374f76f465eb184e7d248876634 (diff)
downloadlua-llthreads2-0ef254d0d5ea2619a295fe1c3832c886f70e5140.tar.gz
lua-llthreads2-0ef254d0d5ea2619a295fe1c3832c886f70e5140.tar.bz2
lua-llthreads2-0ef254d0d5ea2619a295fe1c3832c886f70e5140.zip
Fix. build for Lua 5.2 with LUA_COMPAT_XXX
Diffstat (limited to 'src/l52util.h')
-rw-r--r--src/l52util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/l52util.h b/src/l52util.h
index 94f1bfa..38a87db 100644
--- a/src/l52util.h
+++ b/src/l52util.h
@@ -11,13 +11,19 @@
11// luaL_setfuncs 11// luaL_setfuncs
12// lua_absindex 12// lua_absindex
13 13
14#ifndef lua_objlen
14 15
15#define lua_objlen lua_rawlen 16#define lua_objlen lua_rawlen
16 17
18#endif
19
17int luaL_typerror (lua_State *L, int narg, const char *tname); 20int luaL_typerror (lua_State *L, int narg, const char *tname);
18 21
22#ifndef luaL_register
23
19void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l); 24void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l);
20 25
26#endif
21 27
22#define lutil_require luaL_requiref 28#define lutil_require luaL_requiref
23 29