mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Merge from core
This commit is contained in:
20
test/teststruct.h
Normal file
20
test/teststruct.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#define YAML_ASSERT(cond) \
|
||||
do { \
|
||||
if (!(cond)) \
|
||||
return " Assert failed: " #cond; \
|
||||
} while (false)
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user