10#ifndef CPPSPEC_MACROLESS
16#define $ [](auto& self) -> void
17#define _ [=](auto& self) mutable -> void
23#define context self.context
24#define expect self.expect
25#define explain context
27#define is_expected self.is_expected
28#define subject self.subject
30#define before_all self.before_all
31#define before_each self.before_each
32#define after_all self.after_all
33#define after_each self.after_each
34#define let(name, body) auto(name) = self.let(body);
36#ifdef CPPSPEC_SEMIHOSTED
37#define CPPSPEC_MAIN(spec) \
38 int main(int argc, char** const argv) { \
39 return CppSpec::parse(argc, argv).add_spec(spec).exec().is_success() ? EXIT_SUCCESS : EXIT_FAILURE; \
41 extern "C" int _getentropy(void* buf, size_t buflen) { \
46#define CPPSPEC_MAIN(spec) \
47 int main(int argc, char** const argv) { \
48 return CppSpec::parse(argc, argv).add_spec(spec).exec().is_success() ? EXIT_SUCCESS : EXIT_FAILURE; \
52#define CPPSPEC_SPEC(spec_name) \
53 int spec_name##_spec(int argc, char** const argv) { \
54 return CppSpec::parse(argc, argv).add_spec(spec_name).exec().is_success() ? EXIT_SUCCESS : EXIT_FAILURE; \
A Description with a defined subject.
Definition class_description.hpp:22
Definition description.hpp:20