-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibnucommon.h
More file actions
37 lines (34 loc) · 808 Bytes
/
libnucommon.h
File metadata and controls
37 lines (34 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _LIB_COMMON_INC
#define _LIB_COMMON_INC
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "hashmap.h"
#include "strutil.h"
/* color codes */
#ifndef _NU_COLORS
#define _NU_COLORS
#ifdef __linux__
#define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
#define KYEL "\x1B[33m"
#define KBLU "\x1B[34m"
#define KMAG "\x1B[35m"
#define KCYN "\x1B[36m"
#define KWHT "\x1B[37m"
#define RESET "\033[0m"
#else
#define KNRM ""
#define KRED ""
#define KGRN ""
#define KYEL ""
#define KBLU ""
#define KMAG ""
#define KCYN ""
#define KWHT ""
#define RESET ""
#endif
#endif
#endif