Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/namespace_constant.compat.c

raw
1 #include <stdarg.h>
2 #include <stdbool.h>
3 #include <stdint.h>
4 #include <stdlib.h>
5
6 #ifdef __cplusplus
7 namespace constants {
8 #endif // __cplusplus
9
10 #define FOO 10
11
12 #define ZOM 3.14
13
14 typedef struct {
15 int32_t x[FOO];
16 } Foo;
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif // __cplusplus
21
22 void root(Foo x);
23
24 #ifdef __cplusplus
25 } // extern "C"
26 #endif // __cplusplus
27
28 #ifdef __cplusplus
29 } // namespace constants
30 #endif // __cplusplus