Swapped luabind for non-boost fork

https://github.com/decimad/luabind-deboostified
This commit is contained in:
Adam Martin
2019-02-02 00:06:32 -06:00
parent cbe811cf94
commit 26eb4fb6e0
123 changed files with 9408 additions and 10110 deletions
+12 -9
View File
@@ -22,9 +22,12 @@
#define LUABIND_BUILDING
#include <luabind/lua_include.hpp>
#include <luabind/lua_include.hpp> // for lua_gettop, lua_touserdata, etc
#include <luabind/luabind.hpp>
#include <luabind/detail/class_rep.hpp> // for class_rep, is_class_rep
#include <luabind/detail/object_rep.hpp> // for get_instance, object_rep
#include <string> // for string
using namespace luabind::detail;
@@ -32,27 +35,27 @@ std::string luabind::detail::stack_content_by_name(lua_State* L, int start_index
{
std::string ret;
int top = lua_gettop(L);
for (int i = start_index; i <= top; ++i)
for(int i = start_index; i <= top; ++i)
{
object_rep* obj = get_instance(L, i);
class_rep* crep = is_class_rep(L, i)?(class_rep*)lua_touserdata(L, i):0;
if (obj == 0 && crep == 0)
class_rep* crep = is_class_rep(L, i) ? (class_rep*)lua_touserdata(L, i) : 0;
if(obj == 0 && crep == 0)
{
int type = lua_type(L, i);
ret += lua_typename(L, type);
}
else if (obj)
else if(obj)
{
if (obj->is_const()) ret += "const ";
if(obj->is_const()) ret += "const ";
ret += obj->crep()->name();
}
else if (crep)
else if(crep)
{
ret += "<";
ret += crep->name();
ret += ">";
}
if (i < top) ret += ", ";
if(i < top) ret += ", ";
}
return ret;
}