diff options
| author | gingerBill <bill@gingerbill.org> | 2024-04-18 11:00:47 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-04-18 11:00:47 +0100 |
| commit | 889cd5461ca3601d5359269345594903bd9ed5ca (patch) | |
| tree | 66d992c811119222960877f408c8932e9c340048 /base/runtime | |
| parent | 6127339c56e15eeb4282ea385333c98d690091ee (diff) | |
Add `@(optimization_mode="size")` to `runtime.print_type`
Diffstat (limited to 'base/runtime')
| -rw-r--r-- | base/runtime/print.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/runtime/print.odin b/base/runtime/print.odin index e8da84f14..4e2ffaf80 100644 --- a/base/runtime/print.odin +++ b/base/runtime/print.odin @@ -257,6 +257,8 @@ print_typeid :: #force_no_inline proc "contextless" (id: typeid) { } } } + +@(optimization_mode="size") print_type :: #force_no_inline proc "contextless" (ti: ^Type_Info) { if ti == nil { print_string("nil") |