all repos — mgba @ d1ef27cff90eda02bde9f90cc526e901a4c81d83

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