mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-21 19:38:25 +00:00
Revert "Build System Updated"
This commit is contained in:
@@ -29,29 +29,27 @@
|
||||
#include <luabind/detail/class_rep.hpp>
|
||||
#include <luabind/detail/stack_utils.hpp>
|
||||
|
||||
namespace luabind {
|
||||
namespace detail {
|
||||
namespace luabind { namespace detail
|
||||
{
|
||||
LUABIND_API void do_call_member_selection(lua_State* L, char const* name)
|
||||
{
|
||||
object_rep* obj = static_cast<object_rep*>(lua_touserdata(L, -1));
|
||||
lua_pop(L, 1); // pop self
|
||||
|
||||
LUABIND_API void do_call_member_selection(lua_State* L, char const* name)
|
||||
{
|
||||
object_rep* obj = static_cast<object_rep*>(lua_touserdata(L, -1));
|
||||
assert(obj);
|
||||
obj->crep()->get_table(L); // push the crep table
|
||||
lua_pushstring(L, name);
|
||||
lua_gettable(L, -2);
|
||||
lua_remove(L, -2); // remove the crep table
|
||||
|
||||
lua_pushstring(L, name);
|
||||
lua_gettable(L, -2);
|
||||
lua_replace(L, -2);
|
||||
if (!is_luabind_function(L, -1))
|
||||
return;
|
||||
|
||||
if(!is_luabind_function(L, -1))
|
||||
return;
|
||||
|
||||
// this (usually) means the function has not been
|
||||
// overridden by lua, call the default implementation
|
||||
lua_pop(L, 1);
|
||||
obj->crep()->get_default_table(L); // push the crep table
|
||||
lua_pushstring(L, name);
|
||||
lua_gettable(L, -2);
|
||||
lua_remove(L, -2); // remove the crep table
|
||||
}
|
||||
// this (usually) means the function has not been
|
||||
// overridden by lua, call the default implementation
|
||||
lua_pop(L, 1);
|
||||
obj->crep()->get_default_table(L); // push the crep table
|
||||
lua_pushstring(L, name);
|
||||
lua_gettable(L, -2);
|
||||
lua_remove(L, -2); // remove the crep table
|
||||
}
|
||||
}
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user