Changeset 753 for trunk/archive/pslib/include/psMemory.h
- Timestamp:
- May 20, 2004, 6:12:37 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psMemory.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psMemory.h
r396 r753 26 26 27 27 /// prototype of a basic callback used by memory functions 28 typedef long (*psMemAllocateC B)(const psMemBlock *ptr);28 typedef long (*psMemAllocateCallback)(const psMemBlock *ptr); 29 29 30 30 /// prototype of memory free callback used by memory functions 31 typedef long (*psMemFreeC B)(const psMemBlock *ptr);31 typedef long (*psMemFreeCallback)(const psMemBlock *ptr); 32 32 33 33 /// prototype of a callback used in error conditions 34 typedef void (*psMemProblemC B)(const psMemBlock *ptr, const char *file, int lineno);34 typedef void (*psMemProblemCallback)(const psMemBlock *ptr, const char *file, int lineno); 35 35 36 36 /// prototype of a callback used when memory runs out 37 typedef void *(*psMemExhaustedC B)(size_t size);37 typedef void *(*psMemExhaustedCallback)(size_t size); 38 38 39 39 /** Functions **************************************************************/ … … 84 84 85 85 /// Set callback for problems 86 psMemProblemC B psMemProblemCBSet(psMemProblemCBfunc) ///< Function to run86 psMemProblemCallback psMemProblemCallbackSet(psMemProblemCallback func) ///< Function to run 87 87 ; 88 88 89 89 /// Set callback for out-of-memory 90 psMemExhaustedC B psMemExhaustedCBSet(psMemExhaustedCBfunc) ///< Function to run90 psMemExhaustedCallback psMemExhaustedCallbackSet(psMemExhaustedCallback func) ///< Function to run 91 91 ; 92 92 93 93 /// Set call back for when a particular memory block is allocated 94 psMemAllocateC B psMemAllocateCBSet(psMemAllocateCBfunc) ///< Function to run94 psMemAllocateCallback psMemAllocateCallbackSet(psMemAllocateCallback func) ///< Function to run 95 95 ; 96 96 97 97 /// Set call back for when a particular memory block is freed 98 psMemFreeC B psMemFreeCBSet(psMemFreeCBfunc) ///< Function to run98 psMemFreeCallback psMemFreeCallbackSet(psMemFreeCallback func) ///< Function to run 99 99 ; 100 100
Note:
See TracChangeset
for help on using the changeset viewer.
