6 #include "testing/testing.h"
13 static constexpr
uint32_t is_alive_state = 0x21254634;
14 static constexpr
uint32_t is_destructed_state = 0xFA4BC327;
28 : state_(is_alive_state),
40 throw std::runtime_error(
"throwing during copy, as requested");
47 if (other.throw_during_move) {
48 throw std::runtime_error(
"throwing during move, as requested");
56 throw std::runtime_error(
"throwing during copy, as requested");
66 throw std::runtime_error(
"throwing during move, as requested");
74 const char *message =
"";
75 if (state_ != is_alive_state) {
76 if (state_ == is_destructed_state) {
77 message =
"Trying to destruct an already destructed instance.";
80 message =
"Trying to destruct an uninitialized instance.";
83 EXPECT_EQ(state_, is_alive_state) << message;
84 state_ = is_destructed_state;
95 return a.value ==
b.value;
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)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
unsigned __int64 uint64_t