From 889cd5461ca3601d5359269345594903bd9ed5ca Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 18 Apr 2024 11:00:47 +0100 Subject: [PATCH] Add `@(optimization_mode="size")` to `runtime.print_type` --- base/runtime/print.odin | 2 ++ 1 file changed, 2 insertions(+) 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")