mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
io: make options changable by user
* this will help to disable colorful output because not all terminals can print colors.
This commit is contained in:
@@ -25,10 +25,21 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define CGLM_PRINT_PRECISION 5
|
#ifndef CGLM_PRINT_PRECISION
|
||||||
#define CGLM_PRINT_MAX_TO_SHORT 1e5
|
# define CGLM_PRINT_PRECISION 5
|
||||||
#define CGLM_PRINT_COLOR "\033[36m"
|
#endif
|
||||||
#define CGLM_PRINT_COLOR_RESET "\033[0m"
|
|
||||||
|
#ifndef CGLM_PRINT_MAX_TO_SHORT
|
||||||
|
# define CGLM_PRINT_MAX_TO_SHORT 1e5
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CGLM_PRINT_COLOR
|
||||||
|
# define CGLM_PRINT_COLOR "\033[36m"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef CGLM_PRINT_COLOR_RESET
|
||||||
|
# define CGLM_PRINT_COLOR_RESET "\033[0m"
|
||||||
|
#endif
|
||||||
|
|
||||||
CGLM_INLINE
|
CGLM_INLINE
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user