Debian Codegraph @

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

raw
1 #if 0
2 DEF FOO = 0
3 DEF BAR = 0
4 #endif
5
6
7 from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t
8 from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t
9 cdef extern from *:
10 ctypedef bint bool
11 ctypedef struct va_list
12
13 cdef extern from *:
14
15 IF FOO:
16 const int32_t FOO # = 1
17
18 IF BAR:
19 const int32_t BAR # = 2
20
21 IF FOO:
22 ctypedef struct Foo:
23 pass
24
25 IF BAR:
26 ctypedef struct Bar:
27 pass
28
29 IF FOO:
30 void foo(const Foo *foo);
31
32 IF BAR:
33 void bar(const Bar *bar);