Subversion Repositories Games.Descent

Rev

Blame | Last modification | View Log | Download | RSS feed

  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_read(PHYSFS_File *const handle, void *const buffer, const PHYSFS_uint32 objSize, const PHYSFS_uint32 objCount)
  18. {
  19.         return (PHYSFS_read)(handle, buffer, objSize, objCount);
  20. }
  21. #endif
  22.  
  23. #if DXX_ENABLE_wrap_PHYSFS_write
  24. PHYSFS_sint64 __real_PHYSFS_write(PHYSFS_File *const handle, const void *const buffer, const PHYSFS_uint32 objSize, const PHYSFS_uint32 objCount)
  25. {
  26.         return (PHYSFS_write)(handle, buffer, objSize, objCount);
  27. }
  28. #endif
  29.