From 8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Wed, 11 Jun 2025 00:10:59 +0200 Subject: stdlib: Remove println varargs forwarding is platform specific with llvm, so we cannot easily have this function --- std/stdlib.src | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'std') diff --git a/std/stdlib.src b/std/stdlib.src index 9164f67..aecd4df 100644 --- a/std/stdlib.src +++ b/std/stdlib.src @@ -1,13 +1,6 @@ extern printf = (*i8, varargs) => void; extern exit = (i64) => void; -/* TODO: This has a bug (with varargs i think) */ -let println = (str: *i8, args: varargs) => void { - printf(str, args); - printf("\n"); - return; -}; - let strcmp = (stra: *i8, strb: *i8) => bool { let i = 0; while true { @@ -82,7 +75,7 @@ let iswhitespace = (c: i8) => bool { let assert = (cond: bool) => void { if !cond { - println("ASSERTION FAILED"); + printf("ASSERTION FAILED\n"); exit(1); }; -- cgit 1.4.1