mirror of
https://github.com/recp/cglm.git
synced 2025-12-26 10:35:10 +00:00
add missing mat2x# test and mat2x3 window headers
Missing tests where * MACRO_GLM_MAT2X3_ZERO_INIT * MACRO_GLM_MAT2X3_ZERO * mat2x3s_zero_init * mat2x3s_zero * mat2x4s_zero_init * mat2x4s_zero Commit: * removes (mat2x3) from ((mat2x3)GLM_MAT2X3_ZERO_INIT) to fix error: array initialized from non-constant array expression * removes test_assert_mat2x3_eq_zero from test/src/test_struct.c * adds TEST_IMPL(mat2x3s_zero) to test/src/test_struct.c Signed-off-by: Vincent Davis Jr <vince@underview.tech>
This commit is contained in:
@@ -19,10 +19,10 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#define GLM_MAT2X3_ZERO_INIT {{0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f}}
|
||||
#define GLM_MAT2X3_ZERO_INIT {{0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f}}
|
||||
|
||||
/* for C only */
|
||||
#define GLM_MAT2X3_ZERO ((mat2x3)GLM_MAT2X3_ZERO_INIT)
|
||||
#define GLM_MAT2X3_ZERO GLM_MAT2X3_ZERO_INIT
|
||||
|
||||
/*!
|
||||
* @brief Create mat2x3 matrix from pointer
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#define GLM_MAT2X4_ZERO_INIT {{0.0f, 0.0f, 0.0f, 0.0f}, {0.0f, 0.0f, 0.0f, 0.0f}}
|
||||
|
||||
/* for C only */
|
||||
#define GLM_MAT2X4_ZERO GLM_MAT2X4_ZERO_INIT
|
||||
#define GLM_MAT2X4_ZERO GLM_MAT2X4_ZERO_INIT
|
||||
|
||||
/*!
|
||||
* @brief Create mat2x4 matrix from pointer
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
/* api definition */
|
||||
#define glms_mat2x3_(NAME) CGLM_STRUCTAPI(mat2x3, NAME)
|
||||
|
||||
#define GLMS_MAT2X3_ZERO_INIT {GLM_MAT2X3_ZERO_INIT}
|
||||
#define GLMS_MAT2X3_ZERO_INIT {GLM_MAT2X3_ZERO_INIT}
|
||||
|
||||
/* for C only */
|
||||
#define GLMS_MAT2X3_ZERO ((mat2x3s)GLMS_MAT2X3_ZERO_INIT)
|
||||
#define GLMS_MAT2X3_ZERO ((mat2x3s)GLMS_MAT2X3_ZERO_INIT)
|
||||
|
||||
/*!
|
||||
* @brief Create mat2x3 matrix from pointer
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
/* api definition */
|
||||
#define glms_mat2x4_(NAME) CGLM_STRUCTAPI(mat2x4, NAME)
|
||||
|
||||
#define GLMS_MAT2X4_ZERO_INIT {GLM_MAT2X4_ZERO_INIT}
|
||||
#define GLMS_MAT2X4_ZERO_INIT {GLM_MAT2X4_ZERO_INIT}
|
||||
|
||||
/* for C only */
|
||||
#define GLMS_MAT2X4_ZERO ((mat2x4s)GLMS_MAT2X4_ZERO_INIT)
|
||||
#define GLMS_MAT2X4_ZERO ((mat2x4s)GLMS_MAT2X4_ZERO_INIT)
|
||||
|
||||
/*!
|
||||
* @brief Create mat2x4 matrix from pointer
|
||||
|
||||
Reference in New Issue
Block a user