extern
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
module print
|
||||
module core
|
||||
|
||||
extern func puts(^u8 text)
|
||||
export extern func malloc(size: u64): ^void
|
||||
export extern func free(size: ^void)
|
||||
|
||||
export func print(text: string) {
|
||||
extern func puts(text: ^u8)
|
||||
|
||||
export func print(text: string)
|
||||
{
|
||||
puts(text.ptr)
|
||||
}
|
||||
Reference in New Issue
Block a user