all repos — mgba @ 000b49e45b30ec9c856b7b2e8cf8baee21daa56d

mGBA Game Boy Advance Emulator

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