aboutsummaryrefslogtreecommitdiff
path: root/src/typedef.h
blob: 81892402f0dae7a98348c25789bed572c6ba4886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef TYPEDEF_H
#define TYPEDEF_H

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

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