aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/ffi.test.fixture.callback.c
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-11 12:58:48 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-11 12:58:48 -0800
commitb5519af7e7cc9e3812bdeb16d6f21f4a2b9c251d (patch)
tree5d6f710f2b766a5b7346608bda1b8941559dbf4e /test/bun.js/ffi.test.fixture.callback.c
parent9d94f148dca8aa683151845960f93521861a5d02 (diff)
downloadbun-b5519af7e7cc9e3812bdeb16d6f21f4a2b9c251d.tar.gz
bun-b5519af7e7cc9e3812bdeb16d6f21f4a2b9c251d.tar.zst
bun-b5519af7e7cc9e3812bdeb16d6f21f4a2b9c251d.zip
cleanup some tests
Diffstat (limited to 'test/bun.js/ffi.test.fixture.callback.c')
-rw-r--r--test/bun.js/ffi.test.fixture.callback.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/bun.js/ffi.test.fixture.callback.c b/test/bun.js/ffi.test.fixture.callback.c
index ec83dee80..9c3c088ce 100644
--- a/test/bun.js/ffi.test.fixture.callback.c
+++ b/test/bun.js/ffi.test.fixture.callback.c
@@ -285,6 +285,9 @@ ZIG_REPR_TYPE JSFunctionCall(void* jsGlobalObject, void* callFrame);
bool my_callback_function(void* arg0);
bool my_callback_function(void* arg0) {
+#ifdef INJECT_BEFORE
+INJECT_BEFORE;
+#endif
ZIG_REPR_TYPE arguments[1];
arguments[0] = PTR_TO_JSVALUE(arg0).asZigRepr;
return (bool)JSVALUE_TO_BOOL(_FFI_Callback_call((void*)0x0UL, 1, arguments));