|
Derive-C
|
#include <derive-c/core/includes/def.h>#include "includes.h"#include <derive-c/core/self/def.h>#include <derive-c/core/self/undef.h>#include <derive-c/core/includes/undef.h>Go to the source code of this file.
Data Structures | |
| struct | OK |
| struct | ERROR |
| struct | SELF |
| An allocator that prints to stdout when it allocates or frees memory. More... | |
Macros | |
| #define | OK ok_t |
| A simple result type, using the (already) optional pointer type. | |
| #define | OK_DELETE DC_NO_DELETE |
| #define | OK_EQ DC_MEM_EQ |
| #define | OK_CLONE DC_COPY_CLONE |
| #define | OK_DEBUG DC_DEFAULT_DEBUG |
| #define | ERROR error_t |
| #define | ERROR_THROW(_) |
| #define | ERROR_DELETE DC_NO_DELETE |
| #define | ERROR_EQ DC_MEM_EQ |
| #define | ERROR_CLONE DC_COPY_CLONE |
| #define | ERROR_DEBUG DC_DEFAULT_DEBUG |
Functions | |
| static SELF | from_ok (OK value) |
| static SELF | from_error (ERROR value) |
| static bool | is_error (SELF const *self) |
| static OK const * | strict_get_const (SELF const *self) |
| static OK const * | get_okay (SELF const *self) |
| static ERROR const * | get_error (SELF const *self) |
| static void | debug (SELF const *self, dc_debug_fmt fmt, FILE *stream) |
| static void | delete (SELF *self) |
| #define ERROR error_t |
Definition at line 41 of file template.h.
| #define ERROR_CLONE DC_COPY_CLONE |
Definition at line 60 of file template.h.
| #define ERROR_DEBUG DC_DEFAULT_DEBUG |
Definition at line 64 of file template.h.
| #define ERROR_DELETE DC_NO_DELETE |
Definition at line 52 of file template.h.
| #define ERROR_EQ DC_MEM_EQ |
Definition at line 56 of file template.h.
| #define ERROR_THROW | ( | _ | ) |
Definition at line 48 of file template.h.
| #define OK ok_t |
A simple result type, using the (already) optional pointer type.
Definition at line 15 of file template.h.
| #define OK_CLONE DC_COPY_CLONE |
Definition at line 30 of file template.h.
| #define OK_DEBUG DC_DEFAULT_DEBUG |
Definition at line 34 of file template.h.
| #define OK_DELETE DC_NO_DELETE |
Definition at line 22 of file template.h.
| #define OK_EQ DC_MEM_EQ |
Definition at line 26 of file template.h.
|
static |
Definition at line 118 of file template.h.
|
static |
Definition at line 134 of file template.h.
Definition at line 85 of file template.h.
Definition at line 75 of file template.h.
Definition at line 111 of file template.h.
Definition at line 104 of file template.h.
|
static |
Definition at line 95 of file template.h.
Definition at line 97 of file template.h.