Changeset 5517 for trunk/psLib/src/math/psConstants.h
- Timestamp:
- Nov 15, 2005, 10:10:32 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psConstants.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psConstants.h
r5294 r5517 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1.7 8$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-1 0-12 21:02:20$8 * @version $Revision: 1.79 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-11-15 20:10:32 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 222 222 the wrong type. 223 223 *****************************************************************************/ 224 #define PS_WARN_PTR_NON_NULL(NAME) \ 225 if ((NAME) == NULL) { \ 226 psLogMsg(__func__, PS_LOG_WARN, "WARNING: %s is NULL.", #NAME); \ 227 } \ 228 224 229 #define PS_ASSERT_PTR_NON_NULL(NAME, RVAL) PS_ASSERT_GENERAL_PTR_NON_NULL(NAME, return RVAL) 225 230 #define PS_ASSERT_GENERAL_PTR_NON_NULL(NAME, CLEANUP) \ … … 501 506 PS_POLY macros: 502 507 *****************************************************************************/ 508 #define PS_ASSERT_POLY1D(NAME, RVAL) \ 509 if (false == psMemCheckPolynomial1D(NAME)) { \ 510 psError(PS_ERR_BAD_PARAMETER_NULL, true, \ 511 "Unallowable operation: argument %s is not a psPolynomial1D struct.\n",\ 512 #NAME); \ 513 return(RVAL); \ 514 } \ 515 503 516 #define PS_ASSERT_POLY_NON_NULL(NAME, RVAL) \ 504 517 if ((NAME) == NULL || (NAME)->coeff == NULL) { \ … … 582 595 printf("%s->coeff[%d] is %f\n", #NAME, i, NAME->coeff[i]); \ 583 596 }\ 597 598 /***************************************************************************** 599 PS_SPLINE macros: 600 *****************************************************************************/ 601 #define PS_ASSERT_SPLINE(NAME, RVAL) \ 602 if (false == psMemCheckSpline1D(NAME)) { \ 603 psError(PS_ERR_BAD_PARAMETER_NULL, true, \ 604 "Unallowable operation: argument %s is not a psSpline1D struct.\n",\ 605 #NAME); \ 606 return(RVAL); \ 607 } \ 608 609 #define PS_ASSERT_SPLINE_NON_NULL(NAME, RVAL) \ 610 if ((NAME) == NULL) { \ 611 psError(PS_ERR_BAD_PARAMETER_NULL, true, \ 612 "Unallowable operation: psSpline1D %s is NULL.", \ 613 #NAME); \ 614 return(RVAL); \ 615 } \ 584 616 585 617 /***************************************************************************** … … 755 787 ((A) * (A)) 756 788 789 #define PRINT_MEMLEAKS(NUM) \ 790 printf("A: ---------------------------------------- (ID: %d)\n", NUM); \ 791 memLeaks = psMemCheckLeaks(currentId,NULL,stderr,false); \ 792 printf("B: ---------------------------------------- (%d)\n", memLeaks); \ 793 757 794 # define PS_SWAP(X,Y) {double tmp=(X); (X) = (Y); (Y) = tmp;}
Note:
See TracChangeset
for help on using the changeset viewer.
