bun-types
Advanced tools
Comparing version 1.1.28-canary.20240917T140517 to 1.1.28-canary.20240918T140535
48
ffi.d.ts
@@ -662,2 +662,50 @@ /** | ||
symbols: Fns; | ||
/** | ||
* Map of symbols to define where the key is the symbol name and the value is the symbol value | ||
* | ||
* Equivalent to `-D` option in gcc/clang. | ||
* | ||
* @example | ||
* ```js | ||
* import { cc } from "bun:ffi"; | ||
* const {symbols: {hello}} = cc({ | ||
* source: hello, | ||
* define: { | ||
* "NDEBUG": "1", | ||
* }, | ||
* symbols: { | ||
* hello: { | ||
* returns: "cstring", | ||
* args: [], | ||
* }, | ||
* }, | ||
* }); | ||
* ``` | ||
*/ | ||
define?: Record<string, string>; | ||
/** | ||
* Flags to pass to the compiler. Note: we do not make gurantees about which specific version of the compiler is used. | ||
* | ||
* @default "-std=c11 -Wl,--export-all-symbols -g -O2" | ||
* | ||
* This is useful for passing macOS frameworks to link against. Or if there are other options you want to pass to the compiler. | ||
* | ||
* @example | ||
* ```js | ||
* import { cc } from "bun:ffi"; | ||
* const {symbols: {hello}} = cc({ | ||
* source: hello, | ||
* flags: ["-framework CoreFoundation", "-framework Security"], | ||
* symbols: { | ||
* hello: { | ||
* returns: "cstring", | ||
* args: [], | ||
* }, | ||
* }, | ||
* }); | ||
* ``` | ||
*/ | ||
flags?: string | string[]; | ||
}): Library<Fns>; | ||
@@ -664,0 +712,0 @@ |
{ | ||
"version": "1.1.28-canary.20240917T140517", | ||
"version": "1.1.28-canary.20240918T140535", | ||
"name": "bun-types", | ||
@@ -4,0 +4,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
374797
12137