From 85601f555a3a57db44631706a25e0f933afd8551 Mon Sep 17 00:00:00 2001 From: kartofen Date: Wed, 21 Dec 2022 01:06:18 +0200 Subject: works with different connections --- src/typedef.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'src/typedef.h') diff --git a/src/typedef.h b/src/typedef.h index 730b32a..5dff622 100644 --- a/src/typedef.h +++ b/src/typedef.h @@ -2,15 +2,26 @@ #define TYPEDEF_H // useful definitions +#include +#include +typedef unsigned char small_t; +typedef uint64_t big_t; // max tiles that can be loaded #define TILES_CAP 128 // max amount of tiles in a tilemap that is being generated #define TILEMAP_CAP 16384 +// max amount of sided +#define SIDES_MAX 6 -#include -#include -typedef unsigned char small_t; -typedef uint64_t big_t; +extern small_t DIMENTIONS; +#define SIDES (2 * DIMENTIONS) + +#define __RED__ "\033[0;31m" +#define __GREEN__ "\033[0;32m" +#define __RESET__ "\033[0m" + +#define info(...) fprintf(stdout, __GREEN__"[INFO]"__RESET__" "__VA_ARGS__); printf("\n") +#define err(...) fprintf(stderr, __RED__"[ERROR]"__RESET__" "__VA_ARGS__); printf("\n") #endif -- cgit v1.2.3