Go to the source code of this file.
|
| #define | NAME dc_debug_string_builder |
| | A common instantiation for debug printing.
|
| #define | DC_DEBUG_STRING(TYPE, INSTANCE) |
◆ DC_DEBUG_STRING
| #define DC_DEBUG_STRING |
( |
| TYPE, |
|
|
| INSTANCE ) |
Value:({ \
dc_debug_string_builder builder = dc_debug_string_builder_new(stdalloc_get_ref()); \
char* string = dc_debug_string_builder_release_string(&builder); \
dc_debug_string_builder_delete(&builder); \
})
static DC_PUBLIC void debug(SELF const *self, dc_debug_fmt fmt, FILE *stream)
static DC_PUBLIC dc_debug_fmt dc_debug_fmt_new()
static DC_PUBLIC char const * string(SELF const *self)
Gets access to the null terminated string.
Definition at line 10 of file string.h.
10#define DC_DEBUG_STRING(TYPE, INSTANCE) \
11 ({ \
12 dc_debug_string_builder builder = dc_debug_string_builder_new(stdalloc_get_ref()); \
13 NS(TYPE, debug)(INSTANCE, dc_debug_fmt_new(), dc_debug_string_builder_stream(&builder)); \
14 char* string = dc_debug_string_builder_release_string(&builder); \
15 dc_debug_string_builder_delete(&builder); \
16 string; \
17 })
◆ NAME
| #define NAME dc_debug_string_builder |
A common instantiation for debug printing.
Definition at line 7 of file string.h.