about summary refs log tree commit diff
path: root/examples/18.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-06-11 00:10:59 +0200
committerBaitinq <[email protected]>2025-06-11 00:11:01 +0200
commit8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5 (patch)
tree80e8e9319734e112558f1a9c31485b1c01bccb41 /examples/18.src
parentBoostrap: fix aarch64 linking (diff)
downloadinterpreter-8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5.tar.gz
interpreter-8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5.tar.bz2
interpreter-8fd13680a7b87dc1a9ba2119666f7b0e26bc62b5.zip
stdlib: Remove println
varargs forwarding is platform specific with llvm, so we cannot easily
have this function
Diffstat (limited to '')
-rw-r--r--examples/18.src8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/18.src b/examples/18.src
index 17c9fee..741a460 100644
--- a/examples/18.src
+++ b/examples/18.src
@@ -8,10 +8,10 @@ let main = () => i64 {
 	(*(x+cast(*i8, 0))) = 10;
 	(*(x+cast(*i8, 1))) = 20;
 	(*(x+cast(*i8, 2))) = 40;
-	println("%p", x);
-	println("%d", *(x+cast(*i8, 0)));
-	println("%d", *(x+cast(*i8, 1)));
-	println("%d", *(x+cast(*i8, 2)));
+	printf("%p\n", x);
+	printf("%d\n", *(x+cast(*i8, 0)));
+	printf("%d\n", *(x+cast(*i8, 1)));
+	printf("%d\n", *(x+cast(*i8, 2)));
 	free(cast(*void, x));
 	return 0;
 };