From d8afa73368cdff38125fa1f7d17ad5ce54c84def Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 21:43:19 -0400 Subject: Improved inline C code: now uses `C_code` keyword and supports interpolation with @ --- test/inline_c.tm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/inline_c.tm') 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); } -- cgit v1.2.3