IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 8, 2004, 4:45:42 PM (22 years ago)
Author:
desonia
Message:

added a PS_MEM_DEBUG preprocessor directive that allows the keeping of all
psMemBlocks as to detect multiple frees.

File:
1 edited

Legend:

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

    r1073 r1204  
    1414 *  @ingroup MemoryManagement
    1515 *
    16  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    17  *  @date $Date: 2004-06-23 23:00:15 $
     16 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     17 *  @date $Date: 2004-07-09 02:45:42 $
    1818 *
    1919 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    223223 *  @ingroup memRefCount
    224224 */
    225 void *psMemIncrRefCounter(
    226     void *vptr                      ///< Pointer to increment refCounter, and return
    227 );
     225#ifdef DOXYGEN
     226void* psMemIncrRefCounter(
     227    void *vptr                         ///< Pointer to increment refCounter, and return
     228);
     229#else
     230void* p_psMemIncrRefCounter(
     231    void *vptr,                        ///< Pointer to increment refCounter, and return
     232    const char *file,                  ///< File of call
     233    int lineno                         ///< Line number of call
     234);
     235#define psMemIncrRefCounter(vptr) p_psMemIncrRefCounter(vptr, __FILE__, __LINE__)
     236#endif
    228237
    229238/** Decrement reference counter and return the pointer
     
    231240 *  @ingroup memRefCount
    232241 */
    233 void *psMemDecrRefCounter(
    234     void *vptr                      ///< Pointer to decrement refCounter, and return
    235 );
     242#ifdef DOXYGEN
     243void* psMemDecrRefCounter(
     244    void *vptr                         ///< Pointer to decrement refCounter, and return
     245);
     246#else
     247void* p_psMemDecrRefCounter(
     248    void *vptr,                        ///< Pointer to decrement refCounter, and return
     249    const char *file,                  ///< File of call
     250    int lineno                         ///< Line number of call
     251);
     252#define psMemDecrRefCounter(vptr) p_psMemDecrRefCounter(vptr, __FILE__, __LINE__)
     253#endif
    236254
    237255/** Set callback for problems
Note: See TracChangeset for help on using the changeset viewer.