mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
6d2100e814
Add abort_clean so that CI does not get stuck on a message box that can never be answered alignment rules do not apply to stack variables, so the tests cannot have the alignment check in the destructor: only for memory pushed into and coming straight out of Lua
11 lines
148 B
C++
11 lines
148 B
C++
#include <cstdlib>
|
|
|
|
struct pre_main {
|
|
pre_main() {
|
|
#ifdef SOL2_CI
|
|
#ifdef _MSC_VER
|
|
_set_abort_behavior(0, _WRITE_ABORT_MSG);
|
|
#endif
|
|
#endif
|
|
}
|
|
} pm; |