diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-07 21:22:49 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-07 21:22:49 +0100 |
| commit | 9ecc2ab15b161cea506b93e7f5607cf13dbb21f5 (patch) | |
| tree | 56e8dfac503ce3111ce51a6768c77f5fc701349a /core/runtime | |
| parent | cb9101e0a0906b755313a692c5e97500a54fe056 (diff) | |
Add more `runtime.print_int` procedures
Diffstat (limited to 'core/runtime')
| -rw-r--r-- | core/runtime/print.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/runtime/print.odin b/core/runtime/print.odin index 07fc87fe6..3ccd4ef90 100644 --- a/core/runtime/print.odin +++ b/core/runtime/print.odin @@ -137,6 +137,10 @@ print_i64 :: proc "contextless" (x: i64) #no_bounds_check { os_write(a[i:]) } +print_uint :: proc "contextless" (x: uint) { print_u64(u64(x)) } +print_uintptr :: proc "contextless" (x: uintptr) { print_u64(u64(x)) } +print_int :: proc "contextless" (x: int) { print_i64(i64(x)) } + print_caller_location :: proc "contextless" (using loc: Source_Code_Location) { print_string(file_path) print_byte('(') |