* Usage: Queue* queue_new(<Type> type)
*/
#define queue_new(type) \
-{ \
- _queue_new(sizeof(type)); \
-}
+ _queue_new(sizeof(type))
/**
* @brief Copy constructor (shallow copy, ok for basic types).
*/
#define queue_push(queue, data) \
{ \
- typeof((data)) tmp = data; \
+ typeof(data) tmp = data; \
_queue_push(queue, &tmp); \
}