diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2023-05-07 22:13:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-07 16:13:56 +0200 |
| commit | 9f38e81735b10668d64974033b4bb5097219ee34 (patch) | |
| tree | 57827cc130a3e79a46c58f4e5ce8946c78f4131a /src/wrapped/wrappedlibxt.c | |
| parent | 47ecde75ec19a58f458c1131ec1968d11d58e7e1 (diff) | |
| download | box64-9f38e81735b10668d64974033b4bb5097219ee34.tar.gz box64-9f38e81735b10668d64974033b4bb5097219ee34.zip | |
[WRAPPER] Used RunFunctionFmt for better sign-extend handling (#768)
* [WRAPPER] Used RunFunctionFmt for better sign-extend handling * [WRAPPER] Fixed some typos * [WRAPPER] Use L for unsigned long for better portability * [WRAPPER] More replace from U to L
Diffstat (limited to 'src/wrapped/wrappedlibxt.c')
| -rwxr-xr-x | src/wrapped/wrappedlibxt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wrapped/wrappedlibxt.c b/src/wrapped/wrappedlibxt.c index 6177ae84..526f79ba 100755 --- a/src/wrapped/wrappedlibxt.c +++ b/src/wrapped/wrappedlibxt.c @@ -39,7 +39,7 @@ GO(7) static uintptr_t my_Event_fct_##A = 0; \ static void my_Event_##A(void* w, void* data, void* event) \ { \ - RunFunction(my_context, my_Event_fct_##A, 3, w, data, event);\ + RunFunctionFmt(my_context, my_Event_fct_##A, "ppp", w, data, event);\ } SUPER() #undef GO @@ -61,7 +61,7 @@ static void* findEventFct(void* fct) static uintptr_t my_WorkProc_fct_##A = 0; \ static int my_WorkProc_##A(void* p) \ { \ - return (int)RunFunction(my_context, my_WorkProc_fct_##A, 1, p);\ + return (int)RunFunctionFmt(my_context, my_WorkProc_fct_##A, "p", p);\ } SUPER() #undef GO @@ -83,7 +83,7 @@ static void* findWorkProcFct(void* fct) static uintptr_t my_InputCallback_fct_##A = 0; \ static void my_InputCallback_##A(void* p, void* s, void* id) \ { \ - RunFunction(my_context, my_InputCallback_fct_##A, 3, p, s, id); \ + RunFunctionFmt(my_context, my_InputCallback_fct_##A, "ppp", p, s, id); \ } SUPER() #undef GO |