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