mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-08 22:13:17 +00:00
Support optional length parameter on struct tags for multi-pointers
This commit is contained in:
@@ -1709,6 +1709,11 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
|
||||
|
||||
elem := runtime.type_info_base(info.elem)
|
||||
if elem != nil {
|
||||
if n, ok := fi.optional_len.?; ok {
|
||||
fmt_array(fi, ptr, n, elem.size, elem, verb)
|
||||
return
|
||||
}
|
||||
|
||||
#partial switch e in elem.variant {
|
||||
case runtime.Type_Info_Array,
|
||||
runtime.Type_Info_Slice,
|
||||
|
||||
Reference in New Issue
Block a user