4 #include "testing/testing.h"
11 static constexpr
uint32_t is_alive_state = 0x21254634;
12 static constexpr
uint32_t is_destructed_state = 0xFA4BC327;
26 : state_(is_alive_state),
38 throw std::runtime_error(
"throwing during copy, as requested");
45 if (other.throw_during_move) {
46 throw std::runtime_error(
"throwing during move, as requested");
54 throw std::runtime_error(
"throwing during copy, as requested");
64 throw std::runtime_error(
"throwing during move, as requested");
72 const char *message =
"";
73 if (state_ != is_alive_state) {
74 if (state_ == is_destructed_state) {
75 message =
"Trying to destruct an already destructed instance.";
78 message =
"Trying to destruct an uninitialized instance.";
81 EXPECT_EQ(state_, is_alive_state) << message;
82 state_ = is_destructed_state;
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
Read Guarded memory(de)allocation.
ExceptionThrower & operator=(ExceptionThrower &&other)
friend bool operator==(const ExceptionThrower &a, const ExceptionThrower &b)
ExceptionThrower & operator=(const ExceptionThrower &other)
ExceptionThrower(int value=0)
friend bool operator!=(const ExceptionThrower &a, const ExceptionThrower &b)
ExceptionThrower(ExceptionThrower &&other)
ExceptionThrower(const ExceptionThrower &other)
void(* MEM_freeN)(void *vmemh)
void *(* MEM_mallocN)(size_t len, const char *str)
unsigned __int64 uint64_t