mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-26 00:10:38 +01:00
Add release and debug targets in Makefile. Improve robustness by checking cache sizes and snprintf returns
This commit is contained in:
10
src/global.c
10
src/global.c
@@ -2,10 +2,20 @@
|
||||
#include <stdio.h>
|
||||
#include "global.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#define RED ""
|
||||
#define BOLD ""
|
||||
#define RESET ""
|
||||
|
||||
#else
|
||||
|
||||
#define RED "\x1b[31;1m"
|
||||
#define BOLD "\x1b[;1m"
|
||||
#define RESET "\x1b[0m"
|
||||
|
||||
#endif
|
||||
|
||||
#define LOG_LEVEL_NORMAL 0
|
||||
#define LOG_LEVEL_VERBOSE 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user