Skip to content

Commit

Permalink
D: fixing callback
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Oct 4, 2024
1 parent 65df2ad commit 4648868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bindgen/cdecl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ impl CDecl {
out.write(")");
}
}
// is_functors = false;

out.write("(");
if args.is_empty() && config.language == Language::C {
Expand Down Expand Up @@ -408,6 +407,7 @@ impl CDecl {
write!(out, " {}", ident);
}
}
is_functors = false;

last_was_pointer = true;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/expectations/cdecl.d
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ alias P = void function(int named1st, bool, bool named3rd, int _);

extern(C) {

void function() O() O;
void function() O();

void root(A a, B b, C c, D d, E e, F f, G g, H h, I i, J j, K k, L l, M m, N n, P p);

Expand Down

0 comments on commit 4648868

Please sign in to comment.