physfs_internal.h
changeset 691 71d9affe0d8a
parent 676 be1460fff07f
child 694 80bc8858b4ab
equal deleted inserted replaced
690:c34d1027aad0 691:71d9affe0d8a
    23 #endif
    23 #endif
    24 
    24 
    25 #ifdef __cplusplus
    25 #ifdef __cplusplus
    26 extern "C" {
    26 extern "C" {
    27 #endif
    27 #endif
       
    28 
       
    29 /* Use the allocation hooks. */
       
    30 #define malloc(x) Do not use malloc() directly.
       
    31 #define realloc(x, y) Do not use realloc() directly.
       
    32 #define free(x) Do not use free() directly.
    28 
    33 
    29 
    34 
    30 /* The LANG section. */
    35 /* The LANG section. */
    31 /*  please send questions/translations to Ryan: icculus@clutteredmind.org. */
    36 /*  please send questions/translations to Ryan: icculus@clutteredmind.org. */
    32 
    37 
  1239 #define GOTO_MACRO_MUTEX(e, m, g) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); goto g; }
  1244 #define GOTO_MACRO_MUTEX(e, m, g) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); goto g; }
  1240 #define GOTO_IF_MACRO_MUTEX(c, e, m, g) if (c) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); goto g; }
  1245 #define GOTO_IF_MACRO_MUTEX(c, e, m, g) if (c) { __PHYSFS_setError(e); __PHYSFS_platformReleaseMutex(m); goto g; }
  1241 
  1246 
  1242 
  1247 
  1243 /*
  1248 /*
  1244  * Get the current allocator. Not valid before PHYSFS_init is called!
  1249  * The current allocator. Not valid before PHYSFS_init is called!
  1245  */
  1250  */
  1246 PHYSFS_Allocator *__PHYSFS_getAllocator(void);
  1251 extern PHYSFS_Allocator __PHYSFS_AllocatorHooks;
  1247 
  1252 
       
  1253 /* convenience macro to make this less cumbersome internally... */
       
  1254 #define allocator __PHYSFS_AllocatorHooks
  1248 
  1255 
  1249 /*--------------------------------------------------------------------------*/
  1256 /*--------------------------------------------------------------------------*/
  1250 /*--------------------------------------------------------------------------*/
  1257 /*--------------------------------------------------------------------------*/
  1251 /*------------                                              ----------------*/
  1258 /*------------                                              ----------------*/
  1252 /*------------  You MUST implement the following functions  ----------------*/
  1259 /*------------  You MUST implement the following functions  ----------------*/