about summary refs log tree commit diff
path: root/examples/0.src
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2025-03-25 00:21:56 +0100
committerBaitinq <[email protected]>2025-03-25 00:21:56 +0100
commite4a1bc33759f2bc39379a93002ac632741cb5f8a (patch)
tree3a089cd55a808fc907b0930cf66c2ce34779f010 /examples/0.src
parentFeature: Add "proper" pointer types (diff)
downloadpry-lang-e4a1bc33759f2bc39379a93002ac632741cb5f8a.tar.gz
pry-lang-e4a1bc33759f2bc39379a93002ac632741cb5f8a.tar.bz2
pry-lang-e4a1bc33759f2bc39379a93002ac632741cb5f8a.zip
Feature: Add basic support for varargs
Diffstat (limited to 'examples/0.src')
-rw-r--r--examples/0.src4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/0.src b/examples/0.src
index 16a0b24..8d0f7c1 100644
--- a/examples/0.src
+++ b/examples/0.src
@@ -1,7 +1,7 @@
 /* HELLO! Welcome to the unnamed language */
-extern printf = (*i64, i64) => i64;
+extern printf = (*i64, varargs) => i64;
 
-let main = (argc: i64) => i64 {
+let main = (argc: i64, argv: *i64) => i64 {
 	printf("%d", argc);
 	
 	return 2;