diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-09-29 23:47:52 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | f5dc9ad48db4d22e7d6f15e340063dc7cb14c1e1 (patch) | |
tree | 4465a81a77e936dc2ed6ecd90183ba6af9cc2dae /std | |
parent | c811a743a1528db1d05970e1aa14162ef7c70b75 (diff) |
Implicit cast from str to ?&c_char, fix use of parameters (to use sys v registers)
Diffstat (limited to 'std')
-rw-r--r-- | std/io.amal | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/std/io.amal b/std/io.amal index 9023280..6acfb1b 100644 --- a/std/io.amal +++ b/std/io.amal @@ -1,5 +1,6 @@ extern const print_extern: fn() i32; +extern const printf: fn(fmt: ?&c_char, ...) c_int; -pub const print = fn() i32 { - return print_extern(); +pub const print = fn(fmt: str, arg1: str) i32 { + return printf(fmt, arg1); }
\ No newline at end of file |