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
|
#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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user