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, name, bit)
12#define DECL_BITS(type, name, bit, nbits)
13
14#define CXX_GUARD_START
15#define CXX_GUARD_END
16
17#define PYCPARSE
18
19typedef int... time_t;
20typedef int... off_t;
21typedef ... va_list;
22typedef ...* png_structp;
23typedef ...* png_infop;
24typedef ...* png_unknown_chunkp;
25
26void free(void*);
27
28#include <limits.h>
29
30#include "flags.h"
31
32#include <mgba/core/core.h>
33#include <mgba/core/mem-search.h>
34#include <mgba/core/tile-cache.h>
35#include <mgba/core/thread.h>
36#include <mgba/core/version.h>
37
38#define PYEXPORT extern "Python+C"
39#include "platform/python/core.h"
40#include "platform/python/log.h"
41#include "platform/python/sio.h"
42#include "platform/python/vfs-py.h"
43#undef PYEXPORT
44
45#ifdef USE_PNG
46#include <mgba-util/png-io.h>
47#endif
48#ifdef M_CORE_GBA
49#include <mgba/internal/arm/arm.h>
50#include <mgba/internal/gba/gba.h>
51#include <mgba/internal/gba/input.h>
52#include <mgba/internal/gba/renderers/tile-cache.h>
53#endif
54#ifdef M_CORE_GB
55#include <mgba/internal/lr35902/lr35902.h>
56#include <mgba/internal/gb/gb.h>
57#include <mgba/internal/gba/input.h>
58#include <mgba/internal/gb/renderers/tile-cache.h>
59#endif
60#ifdef USE_DEBUGGERS
61#include <mgba/debugger/debugger.h>
62#include <mgba/internal/debugger/cli-debugger.h>
63#endif