You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The *`link_name`[attribute][attributes]* may be specified on declarations inside an `extern` block to indicate the symbol to import for the given function or static.
398
+
The *`link_name`[attribute][attributes]* may be applied to declarations inside an `extern` block to specify the symbol to import for the given function or static.
399
399
400
400
> [!EXAMPLE]
401
401
> ```rust
402
-
> unsafeextern {
402
+
> unsafeextern"C"{
403
403
> #[link_name ="actual_symbol_name"]
404
404
> safefnname_in_rust();
405
405
> }
406
406
> ```
407
407
408
408
r[items.extern.attributes.link_name.syntax]
409
-
The `link_name` attributeusesthe [MetaNameValueStr] syntaxtospecifythenameofthesymbol.
409
+
The `link_name` attributeusesthe [MetaNameValueStr] syntax.
0 commit comments