23 #ifndef LUABIND_ERROR_HPP_INCLUDED 24 #define LUABIND_ERROR_HPP_INCLUDED 26 #include <luabind/prefix.hpp> 28 #include <luabind/config.hpp> 29 #include <luabind/typeid.hpp> 36 #ifndef LUABIND_NO_EXCEPTIONS 46 class LUABIND_API
error :
public std::exception
50 lua_State* state()
const throw() {
return m_L; }
51 virtual const char* what()
const throw()
53 return "lua runtime error";
66 lua_State* state()
const throw() {
return m_L; }
67 type_id info()
const throw() {
return m_info; }
68 virtual const char* what()
const throw() {
return "unable to make cast"; }
76 typedef void(*error_callback_fun)(
lua_State*);
79 LUABIND_API
void set_error_callback(error_callback_fun e);
80 LUABIND_API
void set_cast_failed_callback(cast_failed_callback_fun c);
81 LUABIND_API error_callback_fun get_error_callback();
82 LUABIND_API cast_failed_callback_fun get_cast_failed_callback();
86 typedef int(*pcall_callback_fun)(lua_State*);
87 LUABIND_API
void set_pcall_callback(pcall_callback_fun e);
88 LUABIND_API pcall_callback_fun get_pcall_callback();
92 #endif // LUABIND_ERROR_HPP_INCLUDED Definition: typeid.hpp:22
Definition: minilua.c:461
Definition: PEtypes.h:507