bun-types 1.1.42-canary.20250101T140623 → 1.1.42-canary.20250102T140513
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/api/cc.md +3 -3
- package/package.json +1 -1
package/docs/api/cc.md
CHANGED
|
@@ -179,16 +179,16 @@ type Flags = string | string[];
|
|
|
179
179
|
|
|
180
180
|
These are flags like `-I` for include directories and `-D` for preprocessor definitions.
|
|
181
181
|
|
|
182
|
-
#### `
|
|
182
|
+
#### `define: Record<string, string>`
|
|
183
183
|
|
|
184
|
-
The `
|
|
184
|
+
The `define` is an optional object that should be passed to the TinyCC compiler.
|
|
185
185
|
|
|
186
186
|
```ts
|
|
187
187
|
type Defines = Record<string, string>;
|
|
188
188
|
|
|
189
189
|
cc({
|
|
190
190
|
source: "hello.c",
|
|
191
|
-
|
|
191
|
+
define: {
|
|
192
192
|
"NDEBUG": "1",
|
|
193
193
|
},
|
|
194
194
|
});
|
package/package.json
CHANGED