...
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
module core
|
||||
|
||||
extern func puts(text: ^u8)
|
||||
|
||||
export func print(text: string) {
|
||||
puts(text.ptr)
|
||||
sys::write(0 text.ptr text.length)
|
||||
}
|
||||
|
||||
export func println(text: string) {
|
||||
print(text)
|
||||
print("\n")
|
||||
}
|
||||
Reference in New Issue
Block a user