aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/FFI.h
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-26 06:01:22 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-06-26 06:01:22 -0700
commit77a0f335cb0f18af4e03713583b98e0e1b024b33 (patch)
treef6ed90a992cb46677ab597bba4f6db2fbfcba3b1 /src/bun.js/api/FFI.h
parent31cfcf2c9f40520dac72530ec62e765d3a0de221 (diff)
downloadbun-77a0f335cb0f18af4e03713583b98e0e1b024b33.tar.gz
bun-77a0f335cb0f18af4e03713583b98e0e1b024b33.tar.zst
bun-77a0f335cb0f18af4e03713583b98e0e1b024b33.zip
wip ReadableStream for HTTP(s) Server
Diffstat (limited to 'src/bun.js/api/FFI.h')
-rw-r--r--src/bun.js/api/FFI.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bun.js/api/FFI.h b/src/bun.js/api/FFI.h
index e17e15d30..fb8f4710f 100644
--- a/src/bun.js/api/FFI.h
+++ b/src/bun.js/api/FFI.h
@@ -13,6 +13,8 @@
#define USE_JSVALUE64 1
#define USE_JSVALUE32_64 0
+#define ZIG_REPR_TYPE uint64_t
+
// /* 7.18.1.1 Exact-width integer types */
typedef unsigned char uint8_t;
@@ -80,6 +82,8 @@ typedef union EncodedJSValue {
void* asPtr;
double asDouble;
+
+ ZIG_REPR_TYPE asZigRepr;
} EncodedJSValue;
EncodedJSValue ValueUndefined = { TagValueUndefined };
@@ -244,7 +248,7 @@ static EncodedJSValue INT64_TO_JSVALUE(void* globalObject, int64_t val) {
}
#ifndef IS_CALLBACK
-void* JSFunctionCall(void* globalObject, void* callFrame);
+ZIG_REPR_TYPE JSFunctionCall(void* globalObject, void* callFrame);
#endif