summaryrefslogtreecommitdiffstats
path: root/src/core/GodotGlobal.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-03-01 16:28:58 +0100
committerGitHub <noreply@github.com>2021-03-01 16:28:58 +0100
commit55c0a2ea03369efefa0f795bdc7f81fbd4568a47 (patch)
tree069520ecface5af683b236029919af91dceeaf31 /src/core/GodotGlobal.cpp
parentcee79bb7a6989677812a88833fca2ed4156a117f (diff)
parentcba90d630177ce6c57b5537e74ef3eab4e9c1ea2 (diff)
downloadredot-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.cpp21
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;
}
}