diff options
| author | Baitinq <[email protected]> | 2025-06-11 00:10:59 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-06-11 00:11:01 +0200 |
| commit | 8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5 (patch) | |
| tree | 80e8e9319734e112558f1a9c31485b1c01bccb41 /std/stdlib.src | |
| parent | Boostrap: fix aarch64 linking (diff) | |
| download | pry-lang-8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5.tar.gz pry-lang-8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5.tar.bz2 pry-lang-8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5.zip | |
stdlib: Remove println
varargs forwarding is platform specific with llvm, so we cannot easily have this function
Diffstat (limited to 'std/stdlib.src')
| -rw-r--r-- | std/stdlib.src | 9 |
1 files changed, 1 insertions, 8 deletions
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); }; |