diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-05-26 22:29:32 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2021-06-14 20:48:49 +0800 |
commit | b3bd54001f55246bc1d2d5d601498846465bfc12 (patch) | |
tree | 15c479f2aa6b16362ef1b0707cb0b1435fe1ead8 /core/io/json.h | |
parent | 12e0f10c74e9619262f1edcfdc1840432ada0565 (diff) | |
download | redot-engine-b3bd54001f55246bc1d2d5d601498846465bfc12.tar.gz |
Fix json dump and print of circular structure
Diffstat (limited to 'core/io/json.h')
-rw-r--r-- | core/io/json.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/json.h b/core/io/json.h index bfd2347725..5be8cc1e86 100644 --- a/core/io/json.h +++ b/core/io/json.h @@ -62,7 +62,7 @@ class JSON { static const char *tk_name[TK_MAX]; - static String _print_var(const Variant &p_var, const String &p_indent, int p_cur_indent, bool p_sort_keys, bool p_full_precision = false); + static String _print_var(const Variant &p_var, const String &p_indent, int p_cur_indent, bool p_sort_keys, Set<const void *> &p_markers, bool p_full_precision = false); static Error _get_token(const char32_t *p_str, int &index, int p_len, Token &r_token, int &line, String &r_err_str); static Error _parse_value(Variant &value, Token &token, const char32_t *p_str, int &index, int p_len, int &line, String &r_err_str); |