Debian Codegraph @

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

raw
1 #if 0
2 ''' '
3 #endif
4
5 #ifdef __cplusplus
6 template <typename T>
7 using ManuallyDrop = T;
8 #endif
9
10 #if 0
11 ' '''
12 #endif
13
14
15 from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t
16 from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t
17 cdef extern from *:
18 ctypedef bint bool
19 ctypedef struct va_list
20
21 cdef extern from *:
22
23 ctypedef struct NotReprC_Point:
24 pass
25
26 ctypedef NotReprC_Point Foo;
27
28 ctypedef struct Point:
29 int32_t x;
30 int32_t y;
31
32 ctypedef struct MyStruct:
33 Point point;
34
35 void root(const Foo *a, const MyStruct *with_manual_drop);
36
37 void take(Point with_manual_drop);