mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-capture: Use assert() instead of g_assert()
Also use it instead of `g_return_if_fail()`. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #40
This commit is contained in:
@ -56,6 +56,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
@ -65,7 +66,8 @@ G_BEGIN_DECLS
|
||||
|
||||
typedef uint64_t SysprofAddress;
|
||||
|
||||
G_STATIC_ASSERT (sizeof (SysprofAddress) >= sizeof (void *));
|
||||
static_assert (sizeof (SysprofAddress) >= sizeof (void *),
|
||||
"Address space is too big");
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user