Apply extern "C"
calling convention
Co-authored-by: Amanieu d'Antras <amanieu@gmail.com>
This commit is contained in:
parent
91dda2c24e
commit
c34c77c764
1 changed files with 1 additions and 1 deletions
|
@ -37,6 +37,6 @@ fn main() {
|
|||
}
|
||||
|
||||
#[naked]
|
||||
fn naked(x: usize, y: usize) {
|
||||
extern "C" fn naked(x: usize, y: usize) {
|
||||
unsafe { asm!("ret"); } // #break
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue