diff options
author | George Marques <george@gmarqu.es> | 2021-02-28 16:52:06 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2021-02-28 16:57:34 -0300 |
commit | cba90d630177ce6c57b5537e74ef3eab4e9c1ea2 (patch) | |
tree | 439897c2673d4f0af2635abffe73699d0cae6a01 /src/core/GodotGlobal.cpp | |
parent | 77d41fa179e40560f1e264ed483638bf51713779 (diff) | |
download | redot-cpp-cba90d630177ce6c57b5537e74ef3eab4e9c1ea2.tar.gz |
Update clang-format to version 11
This is taken from the Godot repository, so formatting is similar. This
updates the style rules as well.
Also fix style in files to conform with this version.
Diffstat (limited to 'src/core/GodotGlobal.cpp')
-rw-r--r-- | src/core/GodotGlobal.cpp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/core/GodotGlobal.cpp b/src/core/GodotGlobal.cpp index c7cae20..a73a064 100644 --- a/src/core/GodotGlobal.cpp +++ b/src/core/GodotGlobal.cpp @@ -55,9 +55,12 @@ void Godot::print_warning(const String &description, const String &function, con godot::api->godot_print_warning(c_desc, c_func, c_file, line); }; - if (c_desc != nullptr) godot::api->godot_free(c_desc); - if (c_func != nullptr) godot::api->godot_free(c_func); - if (c_file != nullptr) godot::api->godot_free(c_file); + if (c_desc != nullptr) + godot::api->godot_free(c_desc); + if (c_func != nullptr) + godot::api->godot_free(c_func); + if (c_file != nullptr) + godot::api->godot_free(c_file); } void Godot::print_error(const String &description, const String &function, const String &file, int line) { @@ -71,9 +74,12 @@ void Godot::print_error(const String &description, const String &function, const godot::api->godot_print_error(c_desc, c_func, c_file, line); }; - if (c_desc != nullptr) godot::api->godot_free(c_desc); - if (c_func != nullptr) godot::api->godot_free(c_func); - if (c_file != nullptr) godot::api->godot_free(c_file); + if (c_desc != nullptr) + godot::api->godot_free(c_desc); + if (c_func != nullptr) + godot::api->godot_free(c_func); + if (c_file != nullptr) + godot::api->godot_free(c_file); } void ___register_types(); @@ -136,7 +142,8 @@ void Godot::gdnative_init(godot_gdnative_init_options *options) { } } break; - default: break; + default: + break; } } |