diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-06-24 12:20:55 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-06-24 15:43:55 -0500 |
commit | e0d363aad8e2204fe8ca4b6937ef2ad74a7b293b (patch) | |
tree | c8300e4864984e9157ba8502ee019c4cd7226128 /include/godot_cpp/variant | |
parent | c414c2b37d0563456a2fe194b16f8c4aa442e865 (diff) | |
download | redot-cpp-e0d363aad8e2204fe8ca4b6937ef2ad74a7b293b.tar.gz |
Integrate `.pre-commit-config.yaml`
Diffstat (limited to 'include/godot_cpp/variant')
-rw-r--r-- | include/godot_cpp/variant/array_helpers.hpp | 5 | ||||
-rw-r--r-- | include/godot_cpp/variant/color_names.inc.hpp | 5 | ||||
-rw-r--r-- | include/godot_cpp/variant/rect2.hpp | 2 | ||||
-rw-r--r-- | include/godot_cpp/variant/rect2i.hpp | 2 |
4 files changed, 12 insertions, 2 deletions
diff --git a/include/godot_cpp/variant/array_helpers.hpp b/include/godot_cpp/variant/array_helpers.hpp index d6d4368..3d948aa 100644 --- a/include/godot_cpp/variant/array_helpers.hpp +++ b/include/godot_cpp/variant/array_helpers.hpp @@ -28,6 +28,9 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /**************************************************************************/ +#ifndef GODOT_ARRAY_HELPERS_HPP +#define GODOT_ARRAY_HELPERS_HPP + namespace godot { namespace helpers { template <typename T, typename ValueT> @@ -48,3 +51,5 @@ T append_all(T appendable) { } } // namespace helpers } // namespace godot + +#endif // GODOT_ARRAY_HELPERS_HPP diff --git a/include/godot_cpp/variant/color_names.inc.hpp b/include/godot_cpp/variant/color_names.inc.hpp index c6671fd..d7708e5 100644 --- a/include/godot_cpp/variant/color_names.inc.hpp +++ b/include/godot_cpp/variant/color_names.inc.hpp @@ -28,6 +28,9 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /**************************************************************************/ +#ifndef GODOT_COLOR_NAMES_INC_HPP +#define GODOT_COLOR_NAMES_INC_HPP + namespace godot { // Names from https://en.wikipedia.org/wiki/X11_color_names @@ -189,3 +192,5 @@ static NamedColor named_colors[] = { }; } // namespace godot + +#endif // GODOT_COLOR_NAMES_INC_HPP diff --git a/include/godot_cpp/variant/rect2.hpp b/include/godot_cpp/variant/rect2.hpp index e643035..31c81aa 100644 --- a/include/godot_cpp/variant/rect2.hpp +++ b/include/godot_cpp/variant/rect2.hpp @@ -146,7 +146,7 @@ struct _NO_DISCARD_ Rect2 { return size.x > 0.0f && size.y > 0.0f; } - // Returns the instersection between two Rect2s or an empty Rect2 if there is no intersection + // Returns the intersection between two Rect2s or an empty Rect2 if there is no intersection inline Rect2 intersection(const Rect2 &p_rect) const { Rect2 new_rect = p_rect; diff --git a/include/godot_cpp/variant/rect2i.hpp b/include/godot_cpp/variant/rect2i.hpp index eff4958..57b0905 100644 --- a/include/godot_cpp/variant/rect2i.hpp +++ b/include/godot_cpp/variant/rect2i.hpp @@ -89,7 +89,7 @@ struct _NO_DISCARD_ Rect2i { return size.x > 0 && size.y > 0; } - // Returns the instersection between two Rect2is or an empty Rect2i if there is no intersection + // Returns the intersection between two Rect2is or an empty Rect2i if there is no intersection inline Rect2i intersection(const Rect2i &p_rect) const { Rect2i new_rect = p_rect; |