mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 22:50:54 +00:00
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:
@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user