mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
don't put catch in the sol2 include
This commit is contained in:
parent
eb1771dff1
commit
97525d8b72
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user