about summary refs log tree commit diff
path: root/examples/1.5.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-03-24 23:33:26 +0100
committerBaitinq <[email protected]>2025-03-24 23:33:26 +0100
commit2d8538557dfdd8b86879e4a7ae35749f659bcb34 (patch)
tree71bbed42f1366fed99fe1a3c12efb867320231e5 /examples/1.5.src
parentExamples: Add example of interacting with 3rd party library (diff)
downloadinterpreter-2d8538557dfdd8b86879e4a7ae35749f659bcb34.tar.gz
interpreter-2d8538557dfdd8b86879e4a7ae35749f659bcb34.tar.bz2
interpreter-2d8538557dfdd8b86879e4a7ae35749f659bcb34.zip
Feature: Add "proper" pointer types
Diffstat (limited to 'examples/1.5.src')
-rw-r--r--examples/1.5.src4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/1.5.src b/examples/1.5.src
index ea4c4e0..4391639 100644
--- a/examples/1.5.src
+++ b/examples/1.5.src
@@ -1,3 +1,5 @@
+extern printf = (*i64, i64) => i64;
+
 let x = () => i64 {
 	printf("%d", 22);
 	return 11;
@@ -6,7 +8,7 @@ let x = () => i64 {
 let main = () => i64 {
 	let i = 4;
 
-	print("%d", i);
+	printf("%d", i);
 
 	return x();
 };