From 9f38e81735b10668d64974033b4bb5097219ee34 Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Sun, 7 May 2023 22:13:56 +0800 Subject: [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 --- src/wrapped/wrappedlibxt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wrapped/wrappedlibxt.c') 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 -- cgit 1.4.1