|
Derive-C
|
#include "derive-c/core/panic.h"#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 DC_PUBLIC SELF | from_ok (OK value) |
| static DC_PUBLIC SELF | from_error (ERROR value) |
| static DC_PUBLIC bool | is_error (SELF const *self) |
| static DC_PUBLIC OK const * | strict_get_const (SELF const *self) |
| static DC_PUBLIC OK const * | get_okay (SELF const *self) |
| static DC_PUBLIC ERROR const * | get_error (SELF const *self) |
| static DC_PUBLIC void | debug (SELF const *self, dc_debug_fmt fmt, FILE *stream) |
| static DC_PUBLIC void | delete (SELF *self) |
| #define ERROR error_t |
Definition at line 42 of file template.h.
| #define ERROR_CLONE DC_COPY_CLONE |
Definition at line 61 of file template.h.
| #define ERROR_DEBUG DC_DEFAULT_DEBUG |
Definition at line 65 of file template.h.
| #define ERROR_DELETE DC_NO_DELETE |
Definition at line 53 of file template.h.
| #define ERROR_EQ DC_MEM_EQ |
Definition at line 57 of file template.h.
| #define ERROR_THROW | ( | _ | ) |
Definition at line 49 of file template.h.
| #define OK ok_t |
A simple result type, using the (already) optional pointer type.
Definition at line 16 of file template.h.
| #define OK_CLONE DC_COPY_CLONE |
Definition at line 31 of file template.h.
| #define OK_DEBUG DC_DEFAULT_DEBUG |
Definition at line 35 of file template.h.
| #define OK_DELETE DC_NO_DELETE |
Definition at line 23 of file template.h.
| #define OK_EQ DC_MEM_EQ |
Definition at line 27 of file template.h.
|
static |
Definition at line 120 of file template.h.
Definition at line 136 of file template.h.
Definition at line 86 of file template.h.
Definition at line 76 of file template.h.
Definition at line 113 of file template.h.
Definition at line 106 of file template.h.
Definition at line 96 of file template.h.
Definition at line 98 of file template.h.