all repos — mgba @ 7d360d6cb893f916ecdcece999303cd6a35e952c

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
 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#define ATTRIBUTE_ALIGN(align)
14
15#define CXX_GUARD_START
16#define CXX_GUARD_END
17
18typedef int... time_t;
19typedef int... off_t;
20typedef ... va_list;
21typedef ...* png_structp;
22typedef ...* png_infop;
23typedef ...* png_unknown_chunkp;
24
25void free(void*);
26
27#include <limits.h>
28#undef const
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 M_CORE_DS
61#include <mgba/internal/arm/arm.h>
62#include <mgba/internal/ds/ds.h>
63#include <mgba/internal/ds/input.h>
64#endif
65#ifdef USE_DEBUGGERS
66#include <mgba/debugger/debugger.h>
67#include <mgba/internal/debugger/cli-debugger.h>
68#endif