gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-support/png2hicolorgb/src/common.h
1 // See LICENSE file for license details
2
3 #ifndef _COMMON_H
4 #define _COMMON_H
5
6 #include <stdbool.h>
7
8 #define TILE_HEIGHT_PX 8
9 #define TILE_WIDTH_PX 8
10
11 #define MAX_STR_LEN 4096
12 #define DEFAULT_STR_LEN 100
13
14 #define ARRAY_LEN(A) sizeof(A) / sizeof(A[0])
15
16 #define MAX_PATH (MAX_STR_LEN)
17
18 #ifndef __has_attribute
19 #define __has_attribute(attr) 0
20 #endif
21 #if __has_attribute(format)
22 #define FMT(kind, str_idx, first_to_check) __attribute__((format(kind, str_idx, first_to_check)))
23 #else
24 #define FMT(kind, str_idx, first_to_check)
25 #endif
26
27 enum {
28 IMG_TYPE_PNG
29 };
30
31 void set_exit_error(void);
32 bool get_exit_error(void);
33
34 #endif // _COMMON_H
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.