all repos — mgba @ 04ebc6a06e654f5205b5df3f69c08cc9e93d4784

mGBA Game Boy Advance Emulator

src/platform/python/_builder.h (view raw)

 1#define COMMON_H
 2#define PNG_H
 3#define _SYS_TIME_H
 4#define _SYS_TIME_H_
 5#define _TIME_H
 6#define _TIME_H_
 7
 8#define ATTRIBUTE_FORMAT(X, Y, Z)
 9#define DECL_BITFIELD(newtype, oldtype) typedef oldtype newtype
10#define DECL_BIT(type, name, bit)
11#define DECL_BITS(type, name, bit, nbits)
12
13#define CXX_GUARD_START
14#define CXX_GUARD_END
15
16typedef int... time_t;
17typedef int... off_t;
18typedef ... va_list;
19typedef ...* png_structp;
20typedef ...* png_infop;
21typedef ...* png_unknown_chunkp;
22
23void free(void*);
24
25#include <limits.h>
26#undef const
27
28#include "flags.h"
29
30#include <mgba/core/core.h>
31#include <mgba/core/mem-search.h>
32#include <mgba/core/tile-cache.h>
33
34#define PYEXPORT extern "Python+C"
35#include "platform/python/log.h"
36#include "platform/python/sio.h"
37#include "platform/python/vfs-py.h"
38#undef PYEXPORT
39
40#ifdef USE_PNG
41#include <mgba-util/png-io.h>
42#endif
43#ifdef M_CORE_GBA
44#include <mgba/internal/arm/arm.h>
45#include <mgba/internal/gba/gba.h>
46#include <mgba/internal/gba/input.h>
47#include <mgba/internal/gba/renderers/tile-cache.h>
48#endif
49#ifdef M_CORE_GB
50#include <mgba/internal/lr35902/lr35902.h>
51#include <mgba/internal/gb/gb.h>
52#include <mgba/internal/gba/input.h>
53#include <mgba/internal/gb/renderers/tile-cache.h>
54#endif