Changeset 10911 for branches/jch-memory/psLib/src/sys/psMemory.c
- Timestamp:
- Jan 4, 2007, 4:54:36 PM (19 years ago)
- File:
-
- 1 edited
-
branches/jch-memory/psLib/src/sys/psMemory.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/jch-memory/psLib/src/sys/psMemory.c
r10910 r10911 9 9 * @author Joshua Hoblitt, University of Hawaii 10 10 * 11 * @version $Revision: 1.88.2.1 8$ $Name: not supported by cvs2svn $12 * @date $Date: 2007-01-05 02:5 2:24$11 * @version $Revision: 1.88.2.19 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2007-01-05 02:54:36 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 50 50 // from within the memory subsystem. Previous implementations tried to do 51 51 // this and would deadlock while trying to allocate memory. 52 // 53 // Note that psError() is also *UNSAFE* to use from within the memory 54 // subsystem. 52 55 #define PS_MEM_ABORT(name, ...) \ 53 56 P_PS_MEM_ABORT(__FILE__, __LINE__, __func__, name, __VA_ARGS__) … … 61 64 fprintf(stderr, "\n");\ 62 65 abort(); 63 64 // As with psAbort(), psError() is also *UNSAFE* to use from within the memory65 // subsystem.66 #define PS_MEM_ERROR(code, new, ...) \67 P_PS_MEM_ERROR(__FILE__, __LINE__, __func__, code, new, __VA_ARGS__)68 69 #define P_PS_MEM_ERROR(filename, lineno, func, code, new, ...) \70 fprintf(stderr, "%s (%s:%d) ", func, filename, lineno); \71 fprintf(stderr, __VA_ARGS__);\72 fprintf(stderr, "\n");73 66 74 67 #define HANDLE_BAD_BLOCK(memBlock, file, lineo, func) \ … … 942 935 } 943 936 944 PS_MEM_ERROR(PS_ERR_BAD_PARAMETER_TYPE, true,945 "Invalid datatype specified.\n");946 947 937 return false; 948 938 }
Note:
See TracChangeset
for help on using the changeset viewer.
