cbindgen/tests/expectations/struct_literal.both.c

22 lines
362 B
C

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef struct Bar Bar;
typedef struct Foo {
int32_t a;
uint32_t b;
} Foo;
#define Foo_FOO (Foo){ .a = 42, .b = 47 }
#define Foo_FOO2 (Foo){ .a = 42, .b = 47 }
#define Foo_FOO3 (Foo){ .a = 42, .b = 47 }
#define BAR (Foo){ .a = 42, .b = 1337 }
void root(Foo x, Bar bar);