diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-10-18 23:25:46 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-10-18 23:25:46 +0300 |
commit | 145775818375bafcf191a7b4986e57a00b41ac68 (patch) | |
tree | b539525328515401be6bc2a6c9fb17841b8a16d1 /src/typedef.h | |
parent | 7e64d0c78e8a21f2ede7eab1303758391001c0dc (diff) |
use glfw and some minor refactoring
Diffstat (limited to 'src/typedef.h')
-rw-r--r-- | src/typedef.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/typedef.h b/src/typedef.h index a875116..c585f7a 100644 --- a/src/typedef.h +++ b/src/typedef.h @@ -1,7 +1,18 @@ #ifndef TYPEDEF_H #define TYPEDEF_H -#define BUF_CAP 65536 +#include <stdio.h> +#define __str__(x) #x +#define stringize(x) __str__(x) + +#define __RED__ "\033[0;31m" +#define __GREEN__ "\033[0;32m" +#define __RESET__ "\033[0m" + +#define info(...) fprintf(stdout, __GREEN__"[INFO]"__RESET__" "__FILE__":"stringize(__LINE__)": "__VA_ARGS__) +#define err(...) fprintf(stderr, __RED__"[ERR]"__RESET__" "__FILE__":"stringize(__LINE__)": "__VA_ARGS__) + +#define BUF_CAP 65536 // max datagram size #define REC_CAP 5880 // 30th of a second of audio #endif |