[luabind-cvs] luabind/luabind/luabind/detail ref.hpp,1.11,1.12
Brought to you by:
arvidn,
daniel_wallin
From: Arvid N. <ar...@us...> - 2006-05-29 18:30:46
|
Update of /cvsroot/luabind/luabind/luabind/luabind/detail In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv10361/luabind/luabind/detail Modified Files: ref.hpp Log Message: Applied patch by Evan Wies to make it work with lua 5.1 Index: ref.hpp =================================================================== RCS file: /cvsroot/luabind/luabind/luabind/luabind/detail/ref.hpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- ref.hpp 7 Aug 2004 13:37:10 -0000 1.11 +++ ref.hpp 29 May 2006 18:30:41 -0000 1.12 @@ -32,7 +32,16 @@ struct lua_State; -namespace luabind { namespace detail +namespace luabind +{ + +#if LUA_VERSION_NUM >= 501 +#define LUA_REFNIL (-1) +#undef luaL_setn +#undef luaL_getn +#endif + +namespace detail { int LUABIND_API ref(lua_State *L); |