src/platform/python/_builder.h (view raw)
1#define COMMON_H
2#define PNG_H
3#define OPAQUE_THREADING
4#define _SYS_TIME_H
5#define _SYS_TIME_H_
6#define _TIME_H
7#define _TIME_H_
8
9#define ATTRIBUTE_FORMAT(X, Y, Z)
10#define DECL_BITFIELD(newtype, oldtype) typedef oldtype newtype
11#define DECL_BIT(type, field, bit) DECL_BITS(type, field, bit, 1)
12#define DECL_BITS(TYPE, FIELD, START, SIZE) \
13 TYPE TYPE ## Is ## FIELD (TYPE); \
14 TYPE TYPE ## Get ## FIELD (TYPE); \
15 TYPE TYPE ## Clear ## FIELD (TYPE); \
16 TYPE TYPE ## Fill ## FIELD (TYPE); \
17 TYPE TYPE ## Set ## FIELD (TYPE, TYPE); \
18 TYPE TYPE ## TestFill ## FIELD (TYPE, bool);
19
20#define CXX_GUARD_START
21#define CXX_GUARD_END
22
23#define PYCPARSE
24
25typedef int... time_t;
26typedef int... off_t;
27typedef ... va_list;
28typedef ...* png_structp;
29typedef ...* png_infop;
30typedef ...* png_unknown_chunkp;
31
32void free(void*);
33
34#include <limits.h>
35
36#include "flags.h"
37
38#include <mgba/core/cache-set.h>
39#include <mgba/core/core.h>
40#include <mgba/core/map-cache.h>
41#include <mgba/core/mem-search.h>
42#include <mgba/core/thread.h>
43#include <mgba/core/version.h>
44
45#define PYEXPORT extern "Python+C"
46#include "platform/python/core.h"
47#include "platform/python/log.h"
48#include "platform/python/sio.h"
49#include "platform/python/vfs-py.h"
50#undef PYEXPORT
51
52#ifdef USE_PNG
53#include <mgba-util/png-io.h>
54#endif
55#ifdef M_CORE_GBA
56#include <mgba/internal/arm/arm.h>
57#include <mgba/internal/gba/gba.h>
58#include <mgba/internal/gba/input.h>
59#include <mgba/internal/gba/renderers/cache-set.h>
60#endif
61#ifdef M_CORE_GB
62#include <mgba/internal/lr35902/lr35902.h>
63#include <mgba/internal/gb/gb.h>
64#include <mgba/internal/gba/input.h>
65#include <mgba/internal/gb/renderers/cache-set.h>
66#endif
67#ifdef USE_DEBUGGERS
68#include <mgba/debugger/debugger.h>
69#include <mgba/internal/debugger/cli-debugger.h>
70#endif