all repos — mgba @ 732ed5fa4d91c339a3591529ba9e88d03659919b

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#include <mgba/core/version.h>
34
35#define PYEXPORT extern "Python+C"
36#include "platform/python/log.h"
37#include "platform/python/sio.h"
38#include "platform/python/vfs-py.h"
39#undef PYEXPORT
40
41#ifdef USE_PNG
42#include <mgba-util/png-io.h>
43#endif
44#ifdef M_CORE_GBA
45#include <mgba/internal/arm/arm.h>
46#include <mgba/internal/gba/gba.h>
47#include <mgba/internal/gba/input.h>
48#include <mgba/internal/gba/renderers/tile-cache.h>
49#endif
50#ifdef M_CORE_GB
51#include <mgba/internal/lr35902/lr35902.h>
52#include <mgba/internal/gb/gb.h>
53#include <mgba/internal/gba/input.h>
54#include <mgba/internal/gb/renderers/tile-cache.h>
55#endif