make GLM_TESTS_NO_COLORFUL_OUTPUT work on non-test print colors too

This commit is contained in:
Recep Aslantas
2023-05-06 15:36:41 +03:00
parent ed09fb5819
commit 988dd13d61

View File

@@ -52,13 +52,21 @@
# define CGLM_PRINT_MAX_TO_SHORT 1e5f
#endif
#ifndef GLM_TESTS_NO_COLORFUL_OUTPUT
# ifndef CGLM_PRINT_COLOR
# define CGLM_PRINT_COLOR "\033[36m"
# endif
# ifndef CGLM_PRINT_COLOR_RESET
# define CGLM_PRINT_COLOR_RESET "\033[0m"
# endif
#else
# ifndef CGLM_PRINT_COLOR
# define CGLM_PRINT_COLOR
# endif
# ifndef CGLM_PRINT_COLOR_RESET
# define CGLM_PRINT_COLOR_RESET
# endif
#endif
/*!
* @brief prints current SIMD path in general