IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 27, 2007, 1:14:35 PM (19 years ago)
Author:
jhoblitt
Message:

add psMemIsAlloced()

File:
1 edited

Legend:

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

    r12380 r14676  
    1515 *  @ingroup MemoryManagement
    1616 *
    17  *  @version $Revision: 1.69 $ $Name: not supported by cvs2svn $
    18  *  @date $Date: 2007-03-09 20:11:04 $
     17 *  @version $Revision: 1.70 $ $Name: not supported by cvs2svn $
     18 *  @date $Date: 2007-08-27 23:14:35 $
    1919 *
    2020 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    407407#endif // ifdef DOXYGEN
    408408
     409/** Checks to see if a pointer is to a region of memory that was allocated by psAlloc().
     410 *  @return bool
     411 *
     412 */
     413#ifdef DOXYGEN
     414bool psMemIsAlloced(
     415    const void *ptr                           ///< pointer to memory
     416);
     417#else // ifdef DOXYGEN
     418bool p_psMemIsAlloced(
     419    const char *file,
     420    unsigned int lineno,
     421    const char *func,
     422    const void *ptr
     423);
     424#ifndef SWIG
     425#define psMemIsAlloced(ptr) \
     426      p_psMemIsAlloced(__FILE__, __LINE__, __func__, ptr)
     427#endif // ifndef SWIG
     428#endif // ifdef DOXYGEN
     429
    409430
    410431/** Return reference counter
Note: See TracChangeset for help on using the changeset viewer.