lua.h 374 B

1234567891011121314151617
  1. #ifndef LUA_WRAP_H
  2. #define LUA_WRAP_H
  3. #define LUA_COMPAT_ALL
  4. #include <lua.h>
  5. #include <lualib.h>
  6. #include <lauxlib.h>
  7. #if LUA_VERSION_NUM > 501
  8. # define luaL_reg luaL_Reg
  9. # define luaL_putchar(B, c) luaL_addchar(B, c)
  10. # define luaL_typerror(L, n, t) luax_typerror(L, n, t)
  11. extern int luax_typerror(lua_State *L, int narg, const char *type);
  12. #endif
  13. #endif // LUA_WRAP_H