diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 15:51:15 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-28 15:51:15 -0400 |
| commit | ed6418902c6a9fe444b3c3b242bc7eb3f6c9471e (patch) | |
| tree | 34584dc655a8f8b601219bb0c54aef906fd5619d /src/parse.c | |
| parent | 7d80ca48d458beffd75522605b510d209ccb5328 (diff) | |
Don't force inline C code to use ({...})
Diffstat (limited to 'src/parse.c')
| -rw-r--r-- | src/parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse.c b/src/parse.c index de52f765..ff46fd03 100644 --- a/src/parse.c +++ b/src/parse.c @@ -2401,6 +2401,8 @@ PARSER(parse_inline_c) { parser_err(ctx, start, start+1, "I couldn't find the closing '}' for this inline C code"); CORD c_code = GC_strndup(c_code_start, (size_t)((pos-1) - c_code_start)); + if (type) + c_code = CORD_all("({ ", c_code, "; })"); return NewAST(ctx->file, start, pos, InlineCCode, .code=c_code, .type_ast=type); } |
