Debian Codegraph @

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

raw
1 #define MY_ASSERT(...) do { } while (0)
2 #define MY_ATTRS __attribute((noinline))
3
4
5 from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t
6 from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t
7 cdef extern from *:
8 ctypedef bint bool
9 ctypedef struct va_list
10
11 cdef extern from *:
12
13 ctypedef struct I:
14 pass
15
16 cdef enum:
17 H_Foo,
18 H_Bar,
19 H_Baz,
20 ctypedef uint8_t H_Tag;
21
22 ctypedef struct H_Bar_Body:
23 uint8_t x;
24 int16_t y;
25
26 ctypedef struct H:
27 H_Tag tag;
28 int16_t foo;
29 H_Bar_Body bar;
30
31 cdef enum:
32 J_Foo,
33 J_Bar,
34 J_Baz,
35 ctypedef uint8_t J_Tag;
36
37 ctypedef struct J_Bar_Body:
38 uint8_t x;
39 int16_t y;
40
41 ctypedef struct J:
42 J_Tag tag;
43 int16_t foo;
44 J_Bar_Body bar;
45
46 cdef enum:
47 K_Foo,
48 K_Bar,
49 K_Baz,
50 ctypedef uint8_t K_Tag;
51
52 ctypedef struct K_Bar_Body:
53 K_Tag tag;
54 uint8_t x;
55 int16_t y;
56
57 ctypedef union K:
58 K_Tag tag;
59 int16_t foo;
60 K_Bar_Body bar;
61
62 void foo(H h, I i, J j, K k);