IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2009, 2:25:59 PM (17 years ago)
Author:
eugene
Message:

added psMemTypeEqual to compare types for two (psAlloc-ed) pointers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psMemory.h

    r15047 r23305  
    636636);
    637637
     638/** test for matching types (equal free functions)
     639 *
     640 * This function returns true if the two pointers have matching, non-NULL free functions.
     641 * Supplied pointers must have been allocated within the psLib memory system (ie, with a psAlloc) or the function will abort. (XXX just return false?)
     642 * Supplied pointers must have been provided with free function or the function returns false.
     643 */
     644bool psMemTypeEqual (void *ptr1, ///< pointer to first psMemory object
     645                     void *ptr2 ///< pointer to second psMemory object
     646  );
     647
    638648// Ensure this is a psLib pointer
    639649#define PS_ASSERT_PTR_HEAVY(PTR, RVAL) \
Note: See TracChangeset for help on using the changeset viewer.