cbindgen/tests/rust/body.toml

42 lines
613 B
TOML
Raw Normal View History

[export.body]
"MyFancyStruct" = """
#ifdef __cplusplus
2020-11-18 16:50:59 +03:00
inline void foo();
#endif
"""
"MyFancyEnum" = """
#ifdef __cplusplus
2020-11-18 16:50:59 +03:00
inline void wohoo();
#endif
"""
"MyCLikeEnum" = """
BogusVariantForSerializationForExample,
"""
"MyUnion" = """
2020-11-18 16:50:59 +03:00
int32_t extra_member;
"""
2020-01-13 08:26:21 -05:00
[export.pre_body]
"MyFancyStruct_Prepended" = """
#ifdef __cplusplus
2020-11-18 16:50:59 +03:00
inline void prepended_wohoo();
2020-01-13 08:26:21 -05:00
#endif
"""
"MyFancyEnum_Prepended" = """
2020-11-18 16:50:59 +03:00
#ifdef __cplusplus
2020-01-13 08:26:21 -05:00
inline void wohoo();
2020-11-18 16:50:59 +03:00
#endif
2020-01-13 08:26:21 -05:00
"""
"MyCLikeEnum_Prepended" = """
BogusVariantForSerializationForExample,
"""
"MyUnion_Prepended" = """
2020-11-18 16:50:59 +03:00
int32_t extra_member;
2020-01-13 08:26:21 -05:00
"""