From c85ce38fbb02342d8ef00030d203ab6bcc690f73 Mon Sep 17 00:00:00 2001 From: A404M Date: Sat, 26 Apr 2025 15:14:45 +0330 Subject: add @isComptime to determine if code is running in comptime or not --- code/lib/print.felan | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'code/lib') diff --git a/code/lib/print.felan b/code/lib/print.felan index fd6663c..2680921 100644 --- a/code/lib/print.felan +++ b/code/lib/print.felan @@ -1,3 +1,8 @@ +print :: (value:bool)->void{ + if value print("true"); + else print("false"); +}; + print :: (value:u8)->void{ putc value; }; @@ -164,4 +169,4 @@ print :: (value:u64)->void{ } {} print_reverse(result, i - 1); -}; \ No newline at end of file +}; -- cgit v1.2.3