From 145775818375bafcf191a7b4986e57a00b41ac68 Mon Sep 17 00:00:00 2001 From: kartofen Date: Tue, 18 Oct 2022 23:25:46 +0300 Subject: use glfw and some minor refactoring --- src/typedef.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/typedef.h') 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 +#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 -- cgit v1.2.3