mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Handle LuaErrors in Lua -> C++ calls on LuaJIT
This commit is contained in:
parent
38d112033b
commit
49cec3f782
18 changed files with 113 additions and 134 deletions
17
src/server.h
17
src/server.h
|
@ -55,23 +55,6 @@ class ServerEnvironment;
|
|||
struct SimpleSoundSpec;
|
||||
|
||||
|
||||
class ServerError : public std::exception
|
||||
{
|
||||
public:
|
||||
ServerError(const std::string &s)
|
||||
{
|
||||
m_s = "ServerError: ";
|
||||
m_s += s;
|
||||
}
|
||||
virtual ~ServerError() throw()
|
||||
{}
|
||||
virtual const char * what() const throw()
|
||||
{
|
||||
return m_s.c_str();
|
||||
}
|
||||
std::string m_s;
|
||||
};
|
||||
|
||||
/*
|
||||
Some random functions
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue