diff options
Diffstat (limited to 'allocator.h')
| -rw-r--r-- | allocator.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/allocator.h b/allocator.h index fc28833..d47af52 100644 --- a/allocator.h +++ b/allocator.h | |||
| @@ -1,5 +1,4 @@ | |||
| 1 | #ifndef ITS1_ALLOCATOR_H_INCLUDED | 1 | #pragma once |
| 2 | #define ITS1_ALLOCATOR_H_INCLUDED | ||
| 3 | 2 | ||
| 4 | #include <stddef.h> /* size_t */ | 3 | #include <stddef.h> /* size_t */ |
| 5 | 4 | ||
| @@ -29,5 +28,3 @@ void *its1_malloc_zero(struct its1_allocator *allocator, size_t n); | |||
| 29 | 28 | ||
| 30 | #define NEW(ptr) ((ptr) = ALLOCATE(sizeof *(ptr))) | 29 | #define NEW(ptr) ((ptr) = ALLOCATE(sizeof *(ptr))) |
| 31 | #define NEW0(ptr) ((ptr) = ALLOCATE_ZERO(sizeof *(ptr))) | 30 | #define NEW0(ptr) ((ptr) = ALLOCATE_ZERO(sizeof *(ptr))) |
| 32 | |||
| 33 | #endif | ||
