Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
Functions
a
b
c
d
e
f
h
i
l
n
o
p
r
s
t
u
v
Variables
Typedefs
Enumerations
a
c
d
f
h
i
l
m
p
r
s
t
v
Enumerator
a
c
d
f
h
i
l
m
p
r
s
t
u
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
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
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
h
i
j
l
m
n
o
p
q
r
s
t
u
w
Typedefs
Enumerations
Enumerator
b
c
d
e
f
i
m
n
q
r
s
x
Files
File List
File Members
All
f
o
r
Functions
Variables
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
die.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Roc Streaming authors
3
*
4
* This Source Code Form is subject to the terms of the Mozilla Public
5
* License, v. 2.0. If a copy of the MPL was not distributed with this
6
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
*/
8
9
//! @file roc_core/target_posix/roc_core/die.h
10
//! @brief Program termination.
11
12
#ifndef ROC_CORE_DIE_H_
13
#define ROC_CORE_DIE_H_
14
15
#include "
roc_core/attributes.h
"
16
17
namespace
roc
{
18
namespace
core {
19
20
//! Terminate program.
21
//! @remarks
22
//! Terminates immediately without calling destructors and exit handlers.
23
ROC_ATTR_NORETURN
void
die_fast
(
int
code
);
24
25
//! Terminate program with error message and backtrace.
26
//! @remarks
27
//! Prints error message, backtraces, and terminates program with error.
28
ROC_ATTR_NORETURN
void
die_gracefully
(
const
char
*
message
,
bool
full_backtrace
);
29
30
}
// namespace core
31
}
// namespace roc
32
33
#endif
// ROC_CORE_DIE_H_
attributes.h
Compiler attributes.
ROC_ATTR_NORETURN
#define ROC_ATTR_NORETURN
Function never returns.
Definition
attributes.h:24
roc::core::SharedPtr
Shared ownership intrusive pointer.
Definition
shared_ptr.h:32
roc::core::die_fast
void die_fast(int code)
Terminate program.
roc::core::die_gracefully
void die_gracefully(const char *message, bool full_backtrace)
Terminate program with error message and backtrace.
roc
Root namespace.
roc_core
target_posix
roc_core
die.h
Generated by
1.9.8