diff options
Diffstat (limited to 'src/typedef.h')
-rw-r--r-- | src/typedef.h | 19 |
1 files changed, 15 insertions, 4 deletions
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 <stdint.h> +#include <stddef.h> +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 <stdint.h> -#include <stddef.h> -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 |