mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 15:58:36 +00:00
Swapped luabind for non-boost fork
https://github.com/decimad/luabind-deboostified
This commit is contained in:
@@ -23,11 +23,32 @@
|
||||
#define LUABIND_BUILDING
|
||||
|
||||
#include <luabind/error.hpp>
|
||||
#ifndef LUA_INCLUDE_HPP_INCLUDED
|
||||
#include <luabind/lua_include.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
namespace luabind
|
||||
{
|
||||
namespace luabind {
|
||||
|
||||
#ifndef LUABIND_NO_EXCEPTIONS
|
||||
error::error(lua_State* L)
|
||||
{
|
||||
const char* message = lua_tostring(L, -1);
|
||||
|
||||
if(message)
|
||||
{
|
||||
m_message = message;
|
||||
}
|
||||
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
|
||||
|
||||
const char* error::what() const throw()
|
||||
{
|
||||
return m_message.c_str();
|
||||
}
|
||||
#endif
|
||||
namespace
|
||||
{
|
||||
pcall_callback_fun pcall_callback = 0;
|
||||
@@ -40,9 +61,6 @@ namespace luabind
|
||||
|
||||
#ifdef LUABIND_NO_EXCEPTIONS
|
||||
|
||||
typedef void(*error_callback_fun)(lua_State*);
|
||||
typedef void(*cast_failed_callback_fun)(lua_State*, type_id const&);
|
||||
|
||||
void set_error_callback(error_callback_fun e)
|
||||
{
|
||||
error_callback = e;
|
||||
@@ -76,3 +94,4 @@ namespace luabind
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user