lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I had to make a few changes to LuaCOM (version 1.3) to make it work with Lua 5.1. Specifically, LuaCOM used some macros that were present in Lua 5.0, presumably for compatibility with Lua 4, but have been dropped in Lua 5.1. These include luaL_check_lstr, luaL_opt_lstr, luaL_check_number, and lua_dobuffer. So I fixed this in my copy by replacing these with their current equivalents. If compatibility with Lua 4 is still desired, an alternative solution would be to have LuaCompat.h redefine these macros when LUA5 is defined.

Matt Campbell
Lead Programmer
Serotek Corporation