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