Changeset 123 for trunk/include/helpers/standards.h
- Timestamp:
- Dec 14, 2001, 11:41:33 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/standards.h
r113 r123 63 63 64 64 /* 65 *@@ FREE: 66 * wrapper around the typical free() sequence. 67 * 68 * Usage: 69 * 70 + FREE(p) 71 * 72 * This expands to: 73 * 74 + if (p) 75 + { 76 + free(p); 77 + p = NULL; 78 + } 79 * 80 *@@added V0.9.16 (2001-12-08) [umoeller] 81 */ 82 83 #define FREE(ptr) if ((ptr)) { free(ptr); ptr = NULL; } 84 85 /* 65 86 *@@ ARRAYITEMCOUNT: 66 87 * helpful macro to count the count of items
Note:
See TracChangeset
for help on using the changeset viewer.