Skip to content

Commit ee95559

Browse files
Update defines to define in cc function documentation (#16097)
1 parent 7a52ec5 commit ee95559

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎docs/api/cc.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,16 @@ type Flags = string | string[];
179179

180180
These are flags like `-I` for include directories and `-D` for preprocessor definitions.
181181

182-
#### `defines: Record<string, string>`
182+
#### `define: Record<string, string>`
183183

184-
The `defines` is an optional object that should be passed to the TinyCC compiler.
184+
The `define` is an optional object that should be passed to the TinyCC compiler.
185185

186186
```ts
187187
type Defines = Record<string, string>;
188188

189189
cc({
190190
source: "hello.c",
191-
defines: {
191+
define: {
192192
"NDEBUG": "1",
193193
},
194194
});

0 commit comments

Comments
 (0)