libsysprof-capture: Use SYSPROF_N_ELEMENTS macro instead of G_N_ELEMENTS

It does the same thing.

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

Helps: #40
This commit is contained in:
Philip Withnall
2020-07-02 10:13:26 +01:00
parent b509daaa42
commit 0785f32ce5
5 changed files with 15 additions and 13 deletions

View File

@ -61,6 +61,8 @@
#define sysprof_assert_not_reached() assert (false)
#define SYSPROF_N_ELEMENTS(a) (sizeof (a) / sizeof (*a))
#define sysprof_steal_pointer(pp) __extension__ ({__typeof(*(pp)) _p = *(pp); *(pp) = NULL; _p;})
#define sysprof_clear_pointer(pp, destroy) \