Zrythm
a highly automated and intuitive digital audio workstation
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
e
f
g
i
m
p
r
t
w
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
Typedefs
Enumerations
a
b
c
e
f
g
i
k
m
n
p
r
s
t
u
z
Enumerator
a
u
z
Macros
_
a
b
c
d
e
f
h
i
k
m
p
r
s
t
u
v
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
debug.h
1
// SPDX-FileCopyrightText: © 2021-2022 Alexandros Theodotou <alex@zrythm.org>
2
// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4
#ifndef __UTILS_DEBUG_H__
5
#define __UTILS_DEBUG_H__
6
13
#define z_return_val_if_fail_cmp(a, comparator, b, val) \
14
if (!(G_LIKELY ((a) comparator (b)))) \
15
{ \
16
g_critical ( \
17
"Assertion failed: %s (%" G_GINT64_FORMAT \
18
") " \
19
"%s %s (%" G_GINT64_FORMAT ")", \
20
#a, (gint64) (a), #comparator, #b, (gint64) (b)); \
21
return val; \
22
}
23
24
#define z_return_if_fail_cmp(a, comparator, b) \
25
z_return_val_if_fail_cmp (a, comparator, b, )
26
27
#define z_warn_if_fail_cmp(a, comparator, b) \
28
if (!(G_LIKELY (a comparator b))) \
29
{ \
30
g_warning ( \
31
"Assertion failed: %s (%" G_GINT64_FORMAT \
32
") " \
33
"%s %s (%" G_GINT64_FORMAT ")", \
34
#a, (gint64) (a), #comparator, #b, (gint64) (b)); \
35
}
36
41
#endif
utils
debug.h
Generated by
1.11.0