WIP: dev #1
@@ -129,7 +129,7 @@ static size_t rc_frees = 0;
|
|||||||
__attribute__((destructor))
|
__attribute__((destructor))
|
||||||
static void string_debug_report(void)
|
static void string_debug_report(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "[STR] REPORT allocs=%zu frees=%zu leaks=%zu\n", rc_allocs, rc_frees, rc_allocs - rc_frees);
|
fprintf(stderr, "[RC] REPORT allocs=%zu frees=%zu leaks=%zu\n", rc_allocs, rc_frees, rc_allocs - rc_frees);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void string_rc_inc(string *str)
|
static inline void string_rc_inc(string *str)
|
||||||
|
|||||||
Reference in New Issue
Block a user