Revert "Build System Updated"

This commit is contained in:
Alex
2019-10-12 21:07:06 -07:00
committed by GitHub
parent 579471afcc
commit b9f57f1f28
193 changed files with 14124 additions and 10507 deletions
+5 -24
View File
@@ -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 {
}
}