aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-09-09 01:08:34 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit16aaaa19a3ef4220726007d3e644ced0c9e06513 (patch)
tree6a7c2fc91bc362559b079afbb10dc247d7bcbae0 /std
parentde48503aef098d855754ab6f85558402130188d7 (diff)
Allow referencing code in imported file (right now for function calls, allow calling a function in another file)
Diffstat (limited to 'std')
-rw-r--r--std/io.amal5
1 files changed, 5 insertions, 0 deletions
diff --git a/std/io.amal b/std/io.amal
new file mode 100644
index 0000000..9023280
--- /dev/null
+++ b/std/io.amal
@@ -0,0 +1,5 @@
+extern const print_extern: fn() i32;
+
+pub const print = fn() i32 {
+ return print_extern();
+} \ No newline at end of file