diff options
| author | gingerBill <ginger.bill.22@gmail.com> | 2016-08-15 14:54:45 +0100 |
|---|---|---|
| committer | gingerBill <ginger.bill.22@gmail.com> | 2016-08-15 15:02:45 +0100 |
| commit | dcbb2fcfbdbd3b35ddc44a4c542b7c6375e47214 (patch) | |
| tree | 1670d1ea683c78be063649685c601a17c1dcb025 /examples/basic.odin | |
| parent | 3ed75b22a357292393618fc684b18a1d167f4eb7 (diff) | |
Full Unicode Support
Diffstat (limited to 'examples/basic.odin')
| -rw-r--r-- | examples/basic.odin | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/basic.odin b/examples/basic.odin index 8177ca4da..12418553a 100644 --- a/examples/basic.odin +++ b/examples/basic.odin @@ -1,11 +1,15 @@ // CRT -putchar :: proc(c: i32) -> i32 #foreign +putchar :: proc(c: i32) -> i32 #foreign + heap_alloc :: proc(sz: int) -> rawptr #foreign "malloc" heap_free :: proc(ptr: rawptr) #foreign "free" + mem_compare :: proc(dst, src : rawptr, len: int) -> i32 #foreign "memcmp" mem_copy :: proc(dst, src : rawptr, len: int) -> i32 #foreign "memcpy" mem_move :: proc(dst, src : rawptr, len: int) -> i32 #foreign "memmove" +debug_trap :: proc() #foreign "llvm.debugtrap" + print_string :: proc(s: string) { for i := 0; i < len(s); i++ { |