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
▼
Zrythm
►
Documentation
►
Cyaml Schemas
GTK Tips
►
The Processing Cycle
repo-management
►
Release Checklist
►
Weblate Translations
Building on Windows
Building on Windows (MSVC)
CONTRIBUTING
HACKING
Git Packaging Hooks
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
actions
►
doc
►
dsp
►
gui
►
io
►
plugins
►
project
►
settings
►
src
▼
utils
►
algorithms.h
arrays.h
►
audio.h
►
backtrace.h
►
cairo.h
chromaprint.h
►
color.h
►
compression.h
cpu_windows.h
►
curl.h
►
datetime.h
debug.h
dialogs.h
►
dictionary.h
dir.h
►
dsp.h
►
env.h
►
error.h
►
file.h
►
flags.h
►
general.h
►
gtk.h
hash.h
►
io.h
log.h
►
math.h
►
mem.h
►
midi.h
mpmc_queue.h
►
object_pool.h
objects.h
pango.h
pcg_rand.h
►
progress_info.h
►
resampler.h
►
resources.h
►
sort.h
►
stack.h
stoat.h
►
string.h
►
symap.h
►
system.h
terminal.h
►
types.h
►
ui.h
►
vamp.h
windows.h
windows_errors.h
yaml.h
dir.h
gtk_wrapper.h
project.h
libpanel_wrapper.h
Wrapper.h
►
zrythm.h
►
zrythm_app.h
INSTALL.rst
►
Globals
•
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