cbindgen/tests/expectations/struct_literal_order.pyx
Vadim Petrochenkov 98b7a3f9b9 cython: Leave out values of constants and enumerators
Keep them as documentation only
2020-11-27 01:31:01 +01:00

26 lines
656 B
Cython

from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t
from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t
cdef extern from *:
ctypedef bint bool
ctypedef struct va_list
cdef extern from *:
ctypedef struct ABC:
float a;
uint32_t b;
uint32_t c;
const ABC ABC_abc # = <ABC>{ 1.0, 2, 3 }
const ABC ABC_bac # = <ABC>{ 1.0, 2, 3 }
const ABC ABC_cba # = <ABC>{ 1.0, 2, 3 }
ctypedef struct BAC:
uint32_t b;
float a;
int32_t c;
const BAC BAC_abc # = <BAC>{ 1, 2.0, 3 }
const BAC BAC_bac # = <BAC>{ 1, 2.0, 3 }
const BAC BAC_cba # = <BAC>{ 1, 2.0, 3 }
void root(ABC a1, BAC a2);