aboutsummaryrefslogtreecommitdiff
path: root/test/inline_c.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 21:43:19 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 21:43:19 -0400
commitd8afa73368cdff38125fa1f7d17ad5ce54c84def (patch)
treeac4e54673da6ac32df1e351b913b7c1ddd1118b9 /test/inline_c.tm
parentf4020db2f0d772481ba71edf78fbb65575badc00 (diff)
Improved inline C code: now uses `C_code` keyword and supports
interpolation with @
Diffstat (limited to 'test/inline_c.tm')
-rw-r--r--test/inline_c.tm4
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);
}