aboutsummaryrefslogtreecommitdiff
path: root/code/lib/io.felan
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-08-09 06:11:47 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-08-09 06:11:47 +0330
commit12b45f728905863adb2e727d6c9c406374675bea (patch)
treef05a3a9ec2d846e4c94de334e2d42b80c4daae5c /code/lib/io.felan
parent40881a903e00939b647cd85beeacfb8a68b31e6a (diff)
some clean up and attempts to add bbaHEADmaster
Diffstat (limited to 'code/lib/io.felan')
-rw-r--r--code/lib/io.felan8
1 files changed, 8 insertions, 0 deletions
diff --git a/code/lib/io.felan b/code/lib/io.felan
index d470331..daca38e 100644
--- a/code/lib/io.felan
+++ b/code/lib/io.felan
@@ -18,6 +18,14 @@ print_char :: (value:u8) -> void {
putchar(@cast(value,i32));
};
+print :: (value:[]u8) -> void {
+ i := 0u64;
+ while i < value.length {
+ print_char(value[i]);
+ i += 1u64;
+ }
+};
+
print :: (value:i8) -> void {
_print_signed(@type_of(value),value);
};