|
Derive-C
|
#include <stdio.h>#include <derive-c/core/debug/fmt.h>#include <derive-c/core/namespace.h>#include <derive-c/core/require.h>#include <derive-c/core/std/reflect.h>Go to the source code of this file.
Macros | |
| #define | DC_TRAIT_DEBUGABLE(SELF) |
| The debug trait Inspired by rust's {:?} pretty print, any data structure can be dumped to a stream. | |
| #define | NO_DEBUG PRIV(no_debug) |
| #define | _DC_DERIVE_DEBUG_MEMBER(MEMBER_TYPE, MEMBER_NAME) |
| #define | DC_DERIVE_DEBUG(TYPE) |
| #define | _DERIVE_STD_DEBUG(TYPE, FMT, ...) |
| #define | _DC_DEFAULT_DEBUG_CASE(TYPE, _, x) |
| #define | _DC_DEFAULT_DEBUG(SELF, FMT, STREAM) |
| #define | DC_DEFAULT_DEBUG _DC_DEFAULT_DEBUG |
Functions | |
| static void PRIV | no_debug (void const *self, dc_debug_fmt fmt, FILE *stream) |
| static void | dc_string_debug (char const *const *string, dc_debug_fmt fmt, FILE *stream) |
| #define _DC_DEFAULT_DEBUG | ( | SELF, | |
| FMT, | |||
| STREAM ) |
Definition at line 79 of file debug.h.
| #define _DC_DEFAULT_DEBUG_CASE | ( | TYPE, | |
| _, | |||
| x ) |
| #define _DC_DERIVE_DEBUG_MEMBER | ( | MEMBER_TYPE, | |
| MEMBER_NAME ) |
Definition at line 28 of file debug.h.
| #define _DERIVE_STD_DEBUG | ( | TYPE, | |
| FMT, | |||
| ... ) |
| #define DC_DEFAULT_DEBUG _DC_DEFAULT_DEBUG |
| #define DC_DERIVE_DEBUG | ( | TYPE | ) |
Definition at line 33 of file debug.h.
| #define DC_TRAIT_DEBUGABLE | ( | SELF | ) |
The debug trait Inspired by rust's {:?} pretty print, any data structure can be dumped to a stream.
Definition at line 17 of file debug.h.
|
static |
|
static |