mirror of
https://github.com/topjohnwu/cxx.git
synced 2024-11-23 20:09:55 +00:00
Merge pull request #654 from dtolnay/symbol-visibility-revisit
Force annotation on all functions in both source and header files
This commit is contained in:
commit
4d04cf59d7
@ -910,6 +910,7 @@ fn write_rust_function_shim_decl(
|
||||
sig: &Signature,
|
||||
indirect_call: bool,
|
||||
) {
|
||||
begin_function_definition(out);
|
||||
write_return_type(out, &sig.ret);
|
||||
write!(out, "{}(", local_name);
|
||||
for (i, arg) in sig.args.iter().enumerate() {
|
||||
@ -947,9 +948,6 @@ fn write_rust_function_shim_impl(
|
||||
// We've already defined this inside the struct.
|
||||
return;
|
||||
}
|
||||
if !out.header {
|
||||
begin_function_definition(out);
|
||||
}
|
||||
write_rust_function_shim_decl(out, local_name, sig, indirect_call);
|
||||
if out.header {
|
||||
writeln!(out, ";");
|
||||
|
Loading…
Reference in New Issue
Block a user