diff --git a/src/utils/allocator.c b/src/utils/allocator.c index c4ca93d..985ab0b 100644 --- a/src/utils/allocator.c +++ b/src/utils/allocator.c @@ -11,7 +11,6 @@ #include #include "allocator.h" -#include "common.h" void heap_free(pst_allocator* alloc, void* buff) { diff --git a/src/utils/allocator.h b/src/utils/allocator.h index 774bf43..f490647 100644 --- a/src/utils/allocator.h +++ b/src/utils/allocator.h @@ -16,15 +16,15 @@ #define CAT(a, ...) CAT2(a, __VA_ARGS__) #define CAT2(a, ...) a ## __VA_ARGS__ -// declaration with initialization and parameters of initialization +// declaration and initialization with parameters #define pst_decl(TYPE, NAME, ...) \ TYPE NAME; CAT2(TYPE, _init) (&NAME, __VA_ARGS__); -// declaration with initialization +// declaration and initialization without parameters #define pst_decl0(TYPE, NAME) \ TYPE NAME; CAT2(TYPE, _init) (&NAME); -// allocation with initialization +// allocation and initialization with parameters #define pst_new(TYPE, NAME, ...) \ TYPE* NAME; NAME = CAT2(TYPE, _new) (__VA_ARGS__);