X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fstruct%2Fheap.h;h=bcc54d529d10c47cee49f78cd8a70d9a3a5faf82;hb=f2bfb561625f0efcaef53cb57276967e01fa20bd;hp=d76678b2090757a4a2c05e05a2394121644254bf;hpb=07e34b5dabbe1609ff848b2137ccbbff33619144;p=bertos.git diff --git a/bertos/struct/heap.h b/bertos/struct/heap.h index d76678b2..bcc54d52 100644 --- a/bertos/struct/heap.h +++ b/bertos/struct/heap.h @@ -71,8 +71,7 @@ typedef struct Heap * \param size Heap size in bytes. */ #define HEAP_DEFINE_BUF(name, size) \ - heap_buf_t name[((size) + sizeof(heap_buf_t) - 1) / sizeof(heap_buf_t)]; \ - STATIC_ASSERT(sizeof(name) % sizeof(heap_buf_t) == 0) + heap_buf_t name[((size) + sizeof(heap_buf_t) - 1) / sizeof(heap_buf_t)] /// Initialize \a heap within the buffer pointed by \a memory which is of \a size bytes void heap_init(struct Heap* heap, void* memory, size_t size);