Expose std::deque to C.
More...
#include "util/u_time.h"
#include <stddef.h>
Go to the source code of this file.
◆ U_DEQUE_DECLARATION
#define U_DEQUE_DECLARATION |
( |
|
TYPE | ) |
|
Value: struct u_deque_##TYPE \
{ \
void *ptr; \
}; \
struct u_deque_##TYPE u_deque_##TYPE##_create(void); \
void u_deque_##TYPE##_push_back(struct u_deque_##TYPE ud, TYPE e); \
bool u_deque_##TYPE##_pop_front(struct u_deque_##TYPE ud, TYPE *e); \
TYPE u_deque_##TYPE##_at(struct u_deque_##TYPE ud, size_t i); \
size_t u_deque_##TYPE##_size(struct u_deque_##TYPE wrap); \
void u_deque_##TYPE##_destroy(struct u_deque_##TYPE *ud);