mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 12:00:17 +02:00
Thunks: Convert guest thunk to asm, to avoid issues with older gcc verions
This commit is contained in:
1 parent
2071bab238
commit
70a98cd465
1 file changed
+1
-1
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
#define MAKE_THUNK(lib, name, hash) static __attribute__((naked)) int fexthunks_##lib##_##name(void *args) { asm(".byte 0xF, 0x3F"); asm(".byte " hash ); }
|
||||
#define MAKE_THUNK(lib, name, hash) extern "C" { int fexthunks_##lib##_##name(void *args); } asm("fexthunks_" #lib "_" #name ":\n.byte 0xF, 0x3F\n.byte " hash );
|
||||
|
||||
struct LoadlibArgs {
|
||||
const char *Name;
|
||||
|
||||
Reference in new issue
Block a user