diff options
Diffstat (limited to 'src/gen_tiles.c')
-rw-r--r-- | src/gen_tiles.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gen_tiles.c b/src/gen_tiles.c index c29bc29..5d6cba3 100644 --- a/src/gen_tiles.c +++ b/src/gen_tiles.c @@ -8,11 +8,16 @@ typedef struct tile { char name[64]; char symetry; small_t connections[SIDES_MAX]; - // small_t neighbours[TILES_CAP]; -// size_t neigbours_sz; } tile; #include "config.h" +#define STR_AUX(a) #a +#define STR(a) STR_AUX(a) +#define TILESET_PATH(name) STR(../PATH/name/tileset.h) +// include the tileset header configuration +#include TILESET_PATH(TILESET) + +#define TILESET_NAME STR(TILESET) void copy(char *tile_set, char *name, int n) { |