8#include "testing/testing.h"
15 static constexpr uint32_t is_alive_state = 0x21254634;
16 static constexpr uint32_t is_destructed_state = 0xFA4BC327;
30 : state_(is_alive_state),
41 if (other.throw_during_copy) {
42 throw std::runtime_error(
"throwing during copy, as requested");
49 if (other.throw_during_move) {
50 throw std::runtime_error(
"throwing during move, as requested");
58 throw std::runtime_error(
"throwing during copy, as requested");
68 throw std::runtime_error(
"throwing during move, as requested");
76 const char *message =
"";
77 if (state_ != is_alive_state) {
78 if (state_ == is_destructed_state) {
79 message =
"Trying to destruct an already destructed instance.";
82 message =
"Trying to destruct an uninitialized instance.";
85 EXPECT_EQ(state_, is_alive_state) << message;
86 state_ = is_destructed_state;
97 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=(const ExceptionThrower &other)
ExceptionThrower & operator=(ExceptionThrower &&other)
friend bool operator==(const ExceptionThrower &a, const ExceptionThrower &b)
ExceptionThrower(int value=0)
friend bool operator!=(const ExceptionThrower &a, const ExceptionThrower &b)
ExceptionThrower(ExceptionThrower &&other)
ExceptionThrower(const ExceptionThrower &other)
local_group_size(16, 16) .push_constant(Type b
void *(* MEM_mallocN)(size_t len, const char *str)
void MEM_freeN(void *vmemh)
unsigned __int64 uint64_t