1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-25 09:19:37 +00:00

FFI: Make cbindgen generate extern C block for C++, use qualified screaming snake case for enum variants.

This commit is contained in:
mcb2003 2020-12-12 21:16:55 +00:00
parent f421dd9362
commit d6504a33e9

View File

@ -1,7 +1,12 @@
language = "c"
cpp_compat = true
include_guard = "TTS_RS_H"
header = "/* SPDXLicenseIdentifier: MIT */"
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
[enum]
rename_variants = "QualifiedScreamingSnakeCase"
[defines]
"target_os = linux" = "__linux__"
"target_os = macos" = "__APPLE__"