compat-5.2.h 349 B

12345678910111213141516
  1. #if !defined LUA_VERSION_NUM
  2. /* Lua 5.0 */
  3. #define luaL_Reg luaL_reg
  4. #define luaL_addchar(B,c) \
  5. ((void)((B)->p < ((B)->buffer+LUAL_BUFFERSIZE) || luaL_prepbuffer(B)), \
  6. (*(B)->p++ = (char)(c)))
  7. #endif
  8. #if LUA_VERSION_NUM==501
  9. /* Lua 5.1 */
  10. #define lua_rawlen lua_objlen
  11. #endif
  12. void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup);