diff options
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; } } |