Changeset 7901 for trunk/psLib/src/math/psRegion.c
- Timestamp:
- Jul 13, 2006, 4:26:25 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psRegion.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psRegion.c
r7563 r7901 6 6 #include "psRegion.h" 7 7 8 static void regionFree(psRegion *region) 9 { 10 // There are non dynamic allocated items 11 } 12 8 13 psRegion *psRegionAlloc(float x0, 9 14 float x1, … … 12 17 { 13 18 psRegion *region = psAlloc(sizeof(psRegion)); // New region, to be returned 19 psMemSetDeallocator(region, (psFreeFunc)regionFree); 14 20 // No complex structures, so no special deallocator 15 21 *region = psRegionSet(x0, x1, y0, y1); … … 101 107 } 102 108 109 bool psMemCheckRegion(psPtr ptr) 110 { 111 if (!is_psType(ptr)) { 112 return false; 113 } 114 return ( psMemGetDeallocator(ptr) == (psFreeFunc)regionFree ); 115 } 116 117
Note:
See TracChangeset
for help on using the changeset viewer.
