Debian Codegraph @

.cargo/vendor/cbindgen/tests/expectations/pin.c

raw
1 #if 0
2 ''' '
3 #endif
4
5 #ifdef __cplusplus
6 template <typename T>
7 using Pin = T;
8 template <typename T>
9 using Box = T*;
10 #endif
11
12 #if 0
13 ' '''
14 #endif
15
16
17 #include <stdarg.h>
18 #include <stdbool.h>
19 #include <stdint.h>
20 #include <stdlib.h>
21
22 typedef struct {
23 int32_t *pinned_box;
24 int32_t *pinned_ref;
25 } PinTest;
26
27 void root(int32_t *s, PinTest p);