From 90019676b076abdfc076ed6f38005d6cce89923b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 23 Jul 2022 23:41:51 +0200 Subject: Code quality: Fix header guards consistency Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards. --- core/math/projection.h | 6 +++--- core/math/vector4.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'core/math') diff --git a/core/math/projection.h b/core/math/projection.h index ff65271417..a3d2d7720b 100644 --- a/core/math/projection.h +++ b/core/math/projection.h @@ -28,8 +28,8 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ -#ifndef CAMERA_MATRIX_H -#define CAMERA_MATRIX_H +#ifndef PROJECTION_H +#define PROJECTION_H #include "core/math/math_defs.h" #include "core/math/vector3.h" @@ -164,4 +164,4 @@ Vector3 Projection::xform(const Vector3 &p_vec3) const { return ret / w; } -#endif // CAMERA_MATRIX_H +#endif // PROJECTION_H diff --git a/core/math/vector4.h b/core/math/vector4.h index 7dd8d7aff5..645c51db87 100644 --- a/core/math/vector4.h +++ b/core/math/vector4.h @@ -272,4 +272,5 @@ _FORCE_INLINE_ Vector4 operator*(const int32_t p_scalar, const Vector4 &p_vec) { _FORCE_INLINE_ Vector4 operator*(const int64_t p_scalar, const Vector4 &p_vec) { return p_vec * p_scalar; } + #endif // VECTOR4_H -- cgit v1.2.3