This file contains global type definitions which are used throughout the entire engine and applicatio...
#define KAPI
Import/export qualifier.
Definition: defines.h:205
unsigned int u32
Unsigned 32-bit integer.
Definition: defines.h:25
_Bool b8
8-bit boolean type
Definition: defines.h:58
KAPI b8 queue_pop(queue *s, void *out_element_data)
Attempts to pop an element (writing out a copy of the element data on success) from the front of the ...
struct queue queue
A simple queue container. Elements are popped off the queue in the same order they were pushed to it.
KAPI b8 queue_peek(const queue *s, void *out_element_data)
Attempts to peek an element (writing out a copy of the element data on success) from the queue....
KAPI void queue_destroy(queue *s)
Destroys the given queue.
KAPI b8 queue_push(queue *s, void *element_data)
Pushes an element (a copy of the element data) into the back of the queue.
KAPI b8 queue_create(queue *out_queue, u32 element_size)
Creates a new queue.
A simple queue container. Elements are popped off the queue in the same order they were pushed to it.
Definition: queue.h:21
u32 element_count
The current element count.
Definition: queue.h:25
u32 element_size
The element size in bytes.
Definition: queue.h:23
u32 allocated
The total amount of currently-allocated memory.
Definition: queue.h:27
void * memory
The allocated memory block.
Definition: queue.h:29