diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 21:43:19 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 21:43:19 -0400 |
| commit | d8afa73368cdff38125fa1f7d17ad5ce54c84def (patch) | |
| tree | ac4e54673da6ac32df1e351b913b7c1ddd1118b9 /test | |
| parent | f4020db2f0d772481ba71edf78fbb65575badc00 (diff) | |
Improved inline C code: now uses `C_code` keyword and supports
interpolation with @
Diffstat (limited to 'test')
| -rw-r--r-- | test/inline_c.tm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/inline_c.tm b/test/inline_c.tm index a79359d1..77b56249 100644 --- a/test/inline_c.tm +++ b/test/inline_c.tm @@ -1,8 +1,8 @@ func main() - >> inline C:Int32 { int x = 1 + 2; x } + >> C_code:Int32(int x = 1 + 2; x) = Int32(3) - >> inline C { + >> C_code { say(Text("Inline C code works!"), true); } |
