Don't right-align escaped newlines, e.g. for #define. This has previously led to long diffs in the commit history.
This commit is contained in:
parent
f4f0679a2d
commit
c5df0cb82b
144 changed files with 4519 additions and 4519 deletions
|
|
@ -668,10 +668,10 @@ static bool _encode_container_type(Dictionary &r_dict, const String &p_key, cons
|
|||
}
|
||||
|
||||
Variant JSON::_from_native(const Variant &p_variant, bool p_full_objects, int p_depth) {
|
||||
#define RETURN_ARGS \
|
||||
Dictionary ret; \
|
||||
#define RETURN_ARGS \
|
||||
Dictionary ret; \
|
||||
ret[TYPE] = Variant::get_type_name(p_variant.get_type()); \
|
||||
ret[ARGS] = args; \
|
||||
ret[ARGS] = args; \
|
||||
return ret
|
||||
|
||||
switch (p_variant.get_type()) {
|
||||
|
|
@ -1093,18 +1093,18 @@ Variant JSON::_to_native(const Variant &p_json, bool p_allow_objects, int p_dept
|
|||
|
||||
ERR_FAIL_COND_V(!dict.has(TYPE), Variant());
|
||||
|
||||
#define LOAD_ARGS() \
|
||||
#define LOAD_ARGS() \
|
||||
ERR_FAIL_COND_V(!dict.has(ARGS), Variant()); \
|
||||
const Array args = dict[ARGS]
|
||||
|
||||
#define LOAD_ARGS_CHECK_SIZE(m_size) \
|
||||
#define LOAD_ARGS_CHECK_SIZE(m_size) \
|
||||
ERR_FAIL_COND_V(!dict.has(ARGS), Variant()); \
|
||||
const Array args = dict[ARGS]; \
|
||||
const Array args = dict[ARGS]; \
|
||||
ERR_FAIL_COND_V(args.size() != (m_size), Variant())
|
||||
|
||||
#define LOAD_ARGS_CHECK_FACTOR(m_factor) \
|
||||
#define LOAD_ARGS_CHECK_FACTOR(m_factor) \
|
||||
ERR_FAIL_COND_V(!dict.has(ARGS), Variant()); \
|
||||
const Array args = dict[ARGS]; \
|
||||
const Array args = dict[ARGS]; \
|
||||
ERR_FAIL_COND_V(args.size() % (m_factor) != 0, Variant())
|
||||
|
||||
switch (Variant::get_type_by_name(dict[TYPE])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue