sol2/tests/test_abort_clean.cpp
ThePhD 6d2100e814 Prepare for full appveyor build.
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
2017-12-25 11:44:04 -05:00

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;