libsysprof-capture: Avoid using G_STMT_{START,END} from GLib

Open-code them instead, as they’re relatively simple.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #40
This commit is contained in:
Philip Withnall
2020-07-02 12:29:59 +01:00
parent 8748db4091
commit d83adffd2d

View File

@ -281,7 +281,7 @@ sysprof_collector_init (void)
}
#define COLLECTOR_BEGIN \
G_STMT_START { \
do { \
const SysprofCollector *collector = sysprof_collector_get (); \
if SYSPROF_LIKELY (collector->buffer) \
{ \
@ -296,7 +296,7 @@ sysprof_collector_init (void)
if SYSPROF_UNLIKELY (collector->is_shared) \
G_UNLOCK (control_fd); \
} \
} G_STMT_END
} while (0)
void
sysprof_collector_allocate (SysprofCaptureAddress alloc_addr,