mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 23:20:25 +00:00
Revert "Build System Updated"
This commit is contained in:
@@ -23,32 +23,11 @@
|
||||
#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;
|
||||
@@ -61,6 +40,9 @@ 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;
|
||||
@@ -94,4 +76,3 @@ namespace luabind {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user