Skip to content

Commit

Permalink
Changed the link_prefix section to be more in line with the link_name…
Browse files Browse the repository at this point in the history
… section
  • Loading branch information
nobodyspecial1553 committed Aug 9, 2024
1 parent d83d530 commit 6249052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -3568,7 +3568,7 @@ foo :: proc "c" () -> int {

#### `@(link_prefix=<string>)`

This attribute can be attached to variable and procedure declarations, either when exporting or inside a `foreign` block. So if functions are prefixed with `ltb_' in the library, you can attach this and not specify that on the procedure on the Odin side; conversely, non-Odin procedures must match the exported procedure's name with its link prefix. Example:
This attribute can be attached to variable and procedure declarations, either when exporting or inside a `foreign` block. So if functions are prefixed with `ltb_` in the library, you can attach this and not specify that on the procedure on the Odin side; conversely, non-Odin procedures must match the exported procedure's name with its link prefix. Example:
```odin
@(link_prefix = "ltb_")
foreign foo {
Expand Down

0 comments on commit 6249052

Please sign in to comment.