don't put catch in the sol2 include

This commit is contained in:
ThePhD 2018-04-17 16:13:50 -04:00
parent eb1771dff1
commit 97525d8b72

View File

@ -41,9 +41,8 @@
#endif // Single #endif // Single
#include <sol.hpp> #include <sol.hpp>
#include <catch.hpp> #include <iostream>
#include <cstdlib>
#define CHECK_VALID ( x ) { auto r = x; REQUIRE(r.valid()); }
struct test_stack_guard { struct test_stack_guard {
lua_State* L; lua_State* L;
@ -55,7 +54,9 @@ struct test_stack_guard {
} }
void check() { void check() {
REQUIRE(begintop == endtop); if (begintop != endtop) {
std::abort();
}
} }
~test_stack_guard() { ~test_stack_guard() {