Swapped luabind for non-boost fork

https://github.com/decimad/luabind-deboostified
This commit is contained in:
Adam Martin
2019-02-02 00:06:32 -06:00
parent cbe811cf94
commit 26eb4fb6e0
123 changed files with 9408 additions and 10110 deletions
+24 -5
View File
@@ -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
}
}