summaryrefslogtreecommitdiff
path: root/modules/mono
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-07-25 00:15:20 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-08-31 15:31:49 +0200
commit291d3aaabefa86b4e102fa7385bcf7aacd240d72 (patch)
treeff6a8f88a935e3a0faf89ff06e5a77a6bd562e57 /modules/mono
parentde5f13e9356c1c075ced91893a67164f062b36bc (diff)
Improve null and object printing to avoid confusion with arrays
- Use different syntax for object printing to avoid confusion with arrays. - Print null as `<null>` to avoid confusion with a string `"null"`. - Display `<empty>` in editor resource pickers to avoid confusion with array-based properties.
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/glue/runtime_interop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/glue/runtime_interop.cpp b/modules/mono/glue/runtime_interop.cpp
index 529bda4c38..49a8109ab4 100644
--- a/modules/mono/glue/runtime_interop.cpp
+++ b/modules/mono/glue/runtime_interop.cpp
@@ -1319,7 +1319,7 @@ void godotsharp_object_to_string(Object *p_ptr, godot_string *r_str) {
#endif
// Can't call 'Object::to_string()' here, as that can end up calling 'ToString' again resulting in an endless circular loop.
memnew_placement(r_str,
- String("[" + p_ptr->get_class() + ":" + itos(p_ptr->get_instance_id()) + "]"));
+ String("<" + p_ptr->get_class() + "#" + itos(p_ptr->get_instance_id()) + ">"));
}
#ifdef __cplusplus