Skip to content

Commit

Permalink
dont use stdcall on x86_64 where it is not a valid ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Sep 3, 2024
1 parent df36291 commit 5522e3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/items/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ called from other programming languages like C:
// Declares a function with the "C" ABI
extern "C" fn new_i32() -> i32 { 0 }

// Declares a function with the "stdcall" ABI
// Declares a function with the "vectorcall" ABI
# #[cfg(target_arch = "x86_64")]
extern "stdcall" fn new_i32_stdcall() -> i32 { 0 }
extern "vectorcall" fn new_i32_vectorcall() -> i32 { 0 }
```

Just as with [external block], when the `extern` keyword is used and the `"ABI"`
Expand Down

0 comments on commit 5522e3e

Please sign in to comment.