Browse Source

Add `@(optimization_mode="size")` to `runtime.print_type`

gingerBill 1 year ago
parent
commit
889cd5461c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      base/runtime/print.odin

+ 2 - 0
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) {
 print_type :: #force_no_inline proc "contextless" (ti: ^Type_Info) {
 	if ti == nil {
 	if ti == nil {
 		print_string("nil")
 		print_string("nil")