mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-19 13:28:25 +00:00
Swapped luabind for non-boost fork
https://github.com/decimad/luabind-deboostified
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user