Changeset 11416 for trunk/psLib/src/sys/psMemory.h
- Timestamp:
- Jan 29, 2007, 5:00:50 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psMemory.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psMemory.h
r11265 r11416 15 15 * @ingroup MemoryManagement 16 16 * 17 * @version $Revision: 1.6 4$ $Name: not supported by cvs2svn $18 * @date $Date: 2007-01- 24 22:14:48$17 * @version $Revision: 1.65 $ $Name: not supported by cvs2svn $ 18 * @date $Date: 2007-01-30 03:00:50 $ 19 19 * 20 20 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 391 391 * @see psAlloc, psFree, psgetMemId, psMemProblemCallbackSet 392 392 */ 393 #ifdef DOXYGEN 393 394 int psMemCheckLeaks( 394 395 psMemId id0, ///< don't list blocks with id < id0 … … 397 398 bool persistence ///< make check across all object even persistent ones 398 399 ); 400 #else // ifdef DOXYGEN 401 int p_psMemCheckLeaks( 402 psMemId id0, ///< don't list blocks with id < id0 403 psMemBlock ***array, ///< pointer to array of pointers to leaked blocks, or NULL 404 FILE * fd, ///< print list of leaks to fd (or NULL) 405 bool persistence, ///< make check across all object even persistent ones 406 const char *file, ///< File of caller 407 unsigned int lineno, ///< Line number of caller 408 const char *func ///< Function name of caller 409 ); 410 #ifndef SWIG 411 #define psMemCheckLeaks(id0, array, fd, persistence) \ 412 p_psMemCheckLeaks(id0, array, fd, persistence, __FILE__, __LINE__, __func__) 413 #endif // ifndef SWIG 414 #endif // ifdef DOXYGEN 415 399 416 400 417 /** Check for memory corruption. Scans all currently allocated memory buffers and checks for corruptions, … … 404 421 * 405 422 */ 423 #ifdef DOXYGEN 406 424 int psMemCheckCorruption( 407 425 FILE *output, ///< FILE to write corrupted blocks too 408 426 bool abort_on_error ///< Abort on detecting corruption? 409 427 ); 428 #else // ifdef DOXYGEN 429 int p_psMemCheckCorruption( 430 FILE *output, ///< FILE to write corrupted blocks too 431 bool abort_on_error, ///< Abort on detecting corruption? 432 const char *file, ///< File of caller 433 unsigned int lineno, ///< Line number of caller 434 const char *func ///< Function name of caller 435 ); 436 #ifndef SWIG 437 #define psMemCheckCorruption(output, abort_on_error) \ 438 p_psMemCheckCorruption(output, abort_on_error, __FILE__, __LINE__, __func__) 439 #endif // ifndef SWIG 440 #endif // ifdef DOXYGEN 441 410 442 411 443 /** Return reference counter
Note:
See TracChangeset
for help on using the changeset viewer.
