Revert "Build System Updated"

This commit is contained in:
Alex
2019-10-12 21:07:06 -07:00
committed by GitHub
parent 579471afcc
commit b9f57f1f28
193 changed files with 14124 additions and 10507 deletions
+9 -12
View File
@@ -22,12 +22,9 @@
#define LUABIND_BUILDING
#include <luabind/lua_include.hpp> // for lua_gettop, lua_touserdata, etc
#include <luabind/lua_include.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
#include <luabind/luabind.hpp>
using namespace luabind::detail;
@@ -35,27 +32,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;
}