#ifndef TYPEDEF_H #define TYPEDEF_H // useful definition #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 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