yaml-cpp/test/teststruct.h

21 lines
400 B
C
Raw Normal View History

#pragma once
#include <string>
2014-03-22 21:49:16 +04:00
#define YAML_ASSERT(cond) \
do { \
if (!(cond)) \
return " Assert failed: " #cond; \
} while (false)
2014-03-22 21:49:16 +04:00
namespace Test {
struct TEST {
TEST() : ok(false) {}
TEST(bool ok_) : ok(ok_) {}
TEST(const char *error_) : ok(false), error(error_) {}
bool ok;
std::string error;
};
}