Debian Codegraph @

common/misc/vgrphys.cpp

raw
1 #define DXX_VG_DECLARE_EXTERN_C(F) \
2 decltype(F) __real_##F
3
4 #define DXX_VG_DEFINE_READ(F,V) \
5 int __real_##F(PHYSFS_File *const file, V *const val) { \
6 return (F)(file, val); \
7 }
8
9 #define DXX_VG_DEFINE_WRITE(F,V) \
10 int __real_##F(PHYSFS_File *const file, V val) { \
11 return (F)(file, val); \
12 }
13
14 #include "vg-wrap-physfs.h"
15
16 #if DXX_ENABLE_wrap_PHYSFS_read
17 PHYSFS_sint64 __real_PHYSFS_readBytes(PHYSFS_File *const handle, void *const buffer, const PHYSFS_uint64 len)
18 {
19 return (PHYSFS_readBytes)(handle, buffer, len);
20 }
21 #endif
22
23 #if DXX_ENABLE_wrap_PHYSFS_write
24 PHYSFS_sint64 __real_PHYSFS_writeBytes(PHYSFS_File *const handle, const void *const buffer, const PHYSFS_uint64 len)
25 {
26 return (PHYSFS_writeBytes)(handle, buffer, len);
27 }
28 #endif