diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-03-01 16:28:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 16:28:58 +0100 |
commit | 55c0a2ea03369efefa0f795bdc7f81fbd4568a47 (patch) | |
tree | 069520ecface5af683b236029919af91dceeaf31 /src/core/GodotGlobal.cpp | |
parent | cee79bb7a6989677812a88833fca2ed4156a117f (diff) | |
parent | cba90d630177ce6c57b5537e74ef3eab4e9c1ea2 (diff) | |
download | redot-cpp-55c0a2ea03369efefa0f795bdc7f81fbd4568a47.tar.gz |
Merge pull request #525 from vnen/update-clang-format
Update clang-format to version 11
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; } } |