Derive-C
|
#include <stdbool.h>
#include <stddef.h>
#include <derive-c/core/helpers.h>
#include <derive-c/core/panic.h>
#include <derive-c/core/self/def.h>
#include <derive-c/core/self/undef.h>
Go to the source code of this file.
Classes | |
struct | item_t |
A queue comprised of an extendable circular buffer. More... | |
struct | SELF |
An allocator that prints to stdout when it allocates or frees memory. More... |
Macros | |
#define | ITEM item_t |
#define | ITEM_DELETE item_delete |
#define | ITEM_CLONE item_clone |
#define | ITEM_EQ item_eq |
Functions | |
static void | item_delete (item_t *UNUSED(self)) |
static item_t | item_clone (item_t const *self) |
static bool | item_eq (item_t const *a, item_t const *b) |
static SELF | from (ITEM value) |
static SELF | empty () |
static SELF | clone (SELF const *self) |
static ITEM * | get (SELF *self) |
static ITEM const * | get_const (SELF const *self) |
static ITEM const * | get_const_or (SELF const *self, ITEM const *default_value) |
static bool | is_present (SELF const *self) |
static void | delete (SELF *self) |
static bool | replace (SELF *self, ITEM value) |
#define ITEM item_t |
Definition at line 19 of file template.h.
#define ITEM_CLONE item_clone |
Definition at line 23 of file template.h.
#define ITEM_DELETE item_delete |
Definition at line 21 of file template.h.
#define ITEM_EQ item_eq |
Definition at line 25 of file template.h.
Definition at line 48 of file template.h.
|
static |
Definition at line 85 of file template.h.
|
static |
Definition at line 44 of file template.h.
Definition at line 64 of file template.h.
Definition at line 72 of file template.h.
|
static |
Definition at line 80 of file template.h.
Definition at line 22 of file template.h.
|
static |
Definition at line 20 of file template.h.
Definition at line 24 of file template.h.
Definition at line 92 of file template.h.