mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
make GLM_TESTS_NO_COLORFUL_OUTPUT work on non-test print colors too
This commit is contained in:
@@ -52,12 +52,20 @@
|
|||||||
# define CGLM_PRINT_MAX_TO_SHORT 1e5f
|
# define CGLM_PRINT_MAX_TO_SHORT 1e5f
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CGLM_PRINT_COLOR
|
#ifndef GLM_TESTS_NO_COLORFUL_OUTPUT
|
||||||
# define CGLM_PRINT_COLOR "\033[36m"
|
# ifndef CGLM_PRINT_COLOR
|
||||||
#endif
|
# define CGLM_PRINT_COLOR "\033[36m"
|
||||||
|
# endif
|
||||||
#ifndef CGLM_PRINT_COLOR_RESET
|
# ifndef CGLM_PRINT_COLOR_RESET
|
||||||
# define CGLM_PRINT_COLOR_RESET "\033[0m"
|
# 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
|
#endif
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
Reference in New Issue
Block a user