#include <string.h>
#include <cassert>
#include <exception>
#include "lua_jailbreak_exception.hpp"
Go to the source code of this file.
◆ luai_jmpbuf
#define luai_jmpbuf int /* dummy variable */ |
◆ LUAI_THROW
#define LUAI_THROW |
( |
|
L, |
|
|
|
c |
|
) |
| throw(c) |
◆ LUAI_TRY
#define LUAI_TRY |
( |
|
L, |
|
|
|
c, |
|
|
|
a |
|
) |
| |
Value: try { \
try { \
a \
throw; \
}
catch(
const std::exception &
e) { \
lua_pushstring(L,
e.what()); \
luaG_errormsg(L); \
throw; \
} catch (const lua_longjmp *) { \
\
throw; \
} catch(...) { \
assert(false && "Lua is swallowing an un-named exception... this indicates a programmer error, please derive all exceptions from either std::exception, or lua_jailbreak_exception (and not with multiple inheritance pathways to either or this exception handler will not work!)"); \
throw; \
} \
} catch(...) { \
}
Base class for exceptions that want to be thrown 'through' lua.
Definition at line 59 of file wesnoth_lua_config.h.
◆ strcoll
#define strcoll |
( |
|
a, |
|
|
|
b |
|
) |
| strcmp(a,b) |