mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-29 19:00:06 +00:00
Change syntax for matrices to matrix[R, C]T
This commit is contained in:
+2
-3
@@ -1954,9 +1954,8 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
|
||||
}
|
||||
|
||||
case runtime.Type_Info_Matrix:
|
||||
reflect.write_type(fi.writer, type_info_of(v.id))
|
||||
io.write_byte(fi.writer, '{')
|
||||
defer io.write_byte(fi.writer, '}')
|
||||
io.write_string(fi.writer, "matrix[")
|
||||
defer io.write_byte(fi.writer, ']')
|
||||
|
||||
fi.indent += 1; defer fi.indent -= 1
|
||||
|
||||
|
||||
@@ -592,9 +592,9 @@ write_type_writer :: proc(w: io.Writer, ti: ^Type_Info, n_written: ^int = nil) -
|
||||
write_type(w, info.slice, &n) or_return
|
||||
|
||||
case Type_Info_Matrix:
|
||||
io.write_string(w, "[", &n) or_return
|
||||
io.write_string(w, "matrix[", &n) or_return
|
||||
io.write_i64(w, i64(info.row_count), 10, &n) or_return
|
||||
io.write_string(w, "; ", &n) or_return
|
||||
io.write_string(w, ", ", &n) or_return
|
||||
io.write_i64(w, i64(info.column_count), 10, &n) or_return
|
||||
io.write_string(w, "]", &n) or_return
|
||||
write_type(w, info.elem, &n) or_return
|
||||
|
||||
@@ -372,9 +372,9 @@ print_type :: proc "contextless" (ti: ^Type_Info) {
|
||||
print_type(info.slice)
|
||||
|
||||
case Type_Info_Matrix:
|
||||
print_string("[")
|
||||
print_string("matrix[")
|
||||
print_u64(u64(info.row_count))
|
||||
print_string("; ")
|
||||
print_string(", ")
|
||||
print_u64(u64(info.column_count))
|
||||
print_string("]")
|
||||
print_type(info.elem)
|
||||
|
||||
Reference in New Issue
Block a user