Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api/cpp/cbindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ fn builtin_structs(path: &Path) -> anyhow::Result<()> {
)*
$(
$(writeln!(file, " ///{}", $pri_doc)?;)*
let pri_type = match stringify!($pri_type) {
let pri_type = stringify!($pri_type).replace(' ', "");
let pri_type = match pri_type.as_str() {
"usize" => "uintptr_t",
"crate::animations::Instant" => "uint64_t",
// This shouldn't be accessed by the C++ anyway, just need to have the same ABI in a struct
Expand Down