From 4ccb7e23e0a01284298ea637f7a275a11ebdcabb Mon Sep 17 00:00:00 2001 From: Chukobyte Date: Thu, 4 Jan 2024 19:37:39 -0500 Subject: [PATCH] Wrapping literal transform identity struct constants. --- seika/math/se_math.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seika/math/se_math.h b/seika/math/se_math.h index a2c06e0..f27fb52 100644 --- a/seika/math/se_math.h +++ b/seika/math/se_math.h @@ -73,7 +73,7 @@ typedef struct SKATransform2D { void ska_transform2d_mat4_to_transform(mat4 matrix, SKATransform2D* transform); void ska_transform2d_transform_to_mat4(const SKATransform2D* transform, mat4 matrix); -#define SKA_TRANSFORM_IDENTITY (SKATransform2D){ \ +#define SKA_TRANSFORM_IDENTITY SKA_STRUCT_LITERAL(SKATransform2D){ \ .position = SKA_VECTOR2_ZERO, \ .scale = SKA_VECTOR2_ONE, \ .rotation = 0.0f \ @@ -90,7 +90,7 @@ typedef struct SKATransformModel2D { SKATransform2D ska_transform2d_model_convert_to_transform(SKATransformModel2D* transformModel2D); -#define SKA_TRANSFORM_MODEL_IDENTITY (SKATransformModel2D){ \ +#define SKA_TRANSFORM_MODEL_IDENTITY SKA_STRUCT_LITERAL(SKATransformModel2D){ \ .position = SKA_VECTOR2_ZERO, \ .scale = SKA_VECTOR2_ONE, \ .rotation = 0.0f, \