HomeServer/3rd/lua-md5/compat-5.2.h
2024-11-20 15:41:37 +08:00

16 lines
349 B
C

#if !defined LUA_VERSION_NUM
/* Lua 5.0 */
#define luaL_Reg luaL_reg
#define luaL_addchar(B,c) \
((void)((B)->p < ((B)->buffer+LUAL_BUFFERSIZE) || luaL_prepbuffer(B)), \
(*(B)->p++ = (char)(c)))
#endif
#if LUA_VERSION_NUM==501
/* Lua 5.1 */
#define lua_rawlen lua_objlen
#endif
void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);