mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-07-25 07:25:25 -04:00
1213b3dfb1
remove `clap` dependency 🎉
update the book installation instructions
18 lines
524 B
C
18 lines
524 B
C
// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq
|
|
|
|
#define COMPLEX_TEST(ty_, name_) \
|
|
struct Test##name_ { \
|
|
ty_ _Complex mMember; \
|
|
\
|
|
}; \
|
|
struct Test##name_##Ptr { \
|
|
ty_ _Complex* mMember; \
|
|
};
|
|
|
|
COMPLEX_TEST(double, Double)
|
|
COMPLEX_TEST(float, Float)
|
|
|
|
// FIXME: 128-byte-aligned in some machines
|
|
// which we can't support right now in Rust.
|
|
// COMPLEX_TEST(long double, LongDouble)
|