Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | pmbaty | 1 | #include "dxxsconf.h" |
2 | |||
3 | #ifndef DXX_ENABLE_wrap_PHYSFS_read |
||
4 | #define DXX_ENABLE_wrap_PHYSFS_read DXX_HAVE_POISON_VALGRIND |
||
5 | #endif |
||
6 | |||
7 | #ifndef DXX_ENABLE_wrap_PHYSFS_write |
||
8 | #define DXX_ENABLE_wrap_PHYSFS_write DXX_HAVE_POISON_VALGRIND |
||
9 | #endif |
||
10 | |||
11 | #if DXX_ENABLE_wrap_PHYSFS_read || DXX_ENABLE_wrap_PHYSFS_write |
||
12 | #include <physfs.h> |
||
13 | #ifdef DXX_VG_DECLARE_EXTERN_C |
||
14 | extern "C" { |
||
15 | #if DXX_ENABLE_wrap_PHYSFS_read |
||
16 | DXX_VG_DECLARE_EXTERN_C(PHYSFS_read); |
||
17 | DXX_VG_DECLARE_EXTERN_C(PHYSFS_readSBE16); |
||
18 | DXX_VG_DECLARE_EXTERN_C(PHYSFS_readSBE32); |
||
19 | DXX_VG_DECLARE_EXTERN_C(PHYSFS_readSLE16); |
||
20 | DXX_VG_DECLARE_EXTERN_C(PHYSFS_readSLE32); |
||
21 | #endif |
||
22 | #if DXX_ENABLE_wrap_PHYSFS_write |
||
23 | DXX_VG_DECLARE_EXTERN_C(PHYSFS_write); |
||
24 | DXX_VG_DECLARE_EXTERN_C(PHYSFS_writeSBE16); |
||
25 | DXX_VG_DECLARE_EXTERN_C(PHYSFS_writeSBE32); |
||
26 | DXX_VG_DECLARE_EXTERN_C(PHYSFS_writeSLE16); |
||
27 | DXX_VG_DECLARE_EXTERN_C(PHYSFS_writeSLE32); |
||
28 | DXX_VG_DECLARE_EXTERN_C(PHYSFS_writeULE16); |
||
29 | DXX_VG_DECLARE_EXTERN_C(PHYSFS_writeULE32); |
||
30 | #endif |
||
31 | } |
||
32 | #endif |
||
33 | |||
34 | #if DXX_ENABLE_wrap_PHYSFS_read |
||
35 | #ifdef DXX_VG_DECLARE_READ_HELPER |
||
36 | DXX_VG_DECLARE_READ_HELPER; |
||
37 | #endif |
||
38 | |||
39 | #ifdef DXX_VG_DEFINE_READ |
||
40 | DXX_VG_DEFINE_READ(PHYSFS_readSBE16, PHYSFS_sint16); |
||
41 | DXX_VG_DEFINE_READ(PHYSFS_readSBE32, PHYSFS_sint32); |
||
42 | DXX_VG_DEFINE_READ(PHYSFS_readSLE16, PHYSFS_sint16); |
||
43 | DXX_VG_DEFINE_READ(PHYSFS_readSLE32, PHYSFS_sint32); |
||
44 | #endif |
||
45 | #endif |
||
46 | |||
47 | #if DXX_ENABLE_wrap_PHYSFS_write |
||
48 | #ifdef DXX_VG_DECLARE_WRITE_HELPER |
||
49 | DXX_VG_DECLARE_WRITE_HELPER; |
||
50 | #endif |
||
51 | |||
52 | #ifdef DXX_VG_DEFINE_WRITE |
||
53 | DXX_VG_DEFINE_WRITE(PHYSFS_writeSBE16, PHYSFS_sint16); |
||
54 | DXX_VG_DEFINE_WRITE(PHYSFS_writeSBE32, PHYSFS_sint32); |
||
55 | DXX_VG_DEFINE_WRITE(PHYSFS_writeSLE16, PHYSFS_sint16); |
||
56 | DXX_VG_DEFINE_WRITE(PHYSFS_writeSLE32, PHYSFS_sint32); |
||
57 | DXX_VG_DEFINE_WRITE(PHYSFS_writeULE16, PHYSFS_uint16); |
||
58 | DXX_VG_DEFINE_WRITE(PHYSFS_writeULE32, PHYSFS_uint32); |
||
59 | #endif |
||
60 | #endif |
||
61 | |||
62 | #endif |