Debian Codegraph @

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

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 from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t
18 from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t
19 cdef extern from *:
20 ctypedef bint bool
21 ctypedef struct va_list
22
23 cdef extern from *:
24
25 ctypedef struct PinTest:
26 int32_t *pinned_box;
27 int32_t *pinned_ref;
28
29 void root(int32_t *s, PinTest p);