lm3s1968: generic UART driver.
[bertos.git] / bertos / struct / heap.h
index d76678b2090757a4a2c05e05a2394121644254bf..ad362a6b1966867a04a16b25854bf3b6bdc195e6 100644 (file)
@@ -38,6 +38,9 @@
  *
  * \version $Id$
  * \author Bernie Innocenti <bernie@codewiz.org>
+ *
+ * $WIZ$ module_name = "heap"
+ * $WIZ$ module_configuration = "bertos/cfg/cfg_heap.h"
  */
 
 #ifndef STRUCT_HEAP_H
@@ -71,8 +74,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);