#include <stdint.h>
#include <derive-c/core/prelude.h>
Go to the source code of this file.
◆ Foo_REFLECT
Value: F(uint32_t, bing) \
F(char, baz) \
F(double, zing)
Definition at line 5 of file general.c.
5#define Foo_REFLECT(F) \
6 F(uint32_t, bing) \
7 F(char, baz) \
8 F(double, zing)
◆ main()
Definition at line 15 of file general.c.
15 {
16 Foo f = {.bing = 23, .baz = 'c', .zing = 3.14};
17 Foo g = {.bing = 23, .baz = 'c', .zing = 3.14};
18
20 DC_ASSERT(!Foo_gt(&f, &g) && !Foo_lt(&f, &g));
21
22 Foo z = Foo_clone(&f);
23 z.bing += 10;
25}
#define DC_ASSERT(expr,...)