geopm
3.1.0
GEOPM - Global Extensible Open Power Manager
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
c
d
e
g
h
i
j
k
l
m
n
p
r
s
t
v
w
Functions
_
a
c
d
e
g
h
i
k
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
b
c
d
f
i
j
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
m
Related Functions
Files
File List
File Members
All
_
g
m
p
Functions
g
m
p
Enumerations
Enumerator
g
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Friends
Macros
Pages
libgeopmd
include
geopm_debug.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 - 2024 Intel Corporation
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
#ifndef GEOPM_DEBUG_HPP_INCLUDE
7
#define GEOPM_DEBUG_HPP_INCLUDE
8
9
#include "
geopm/Exception.hpp
"
10
#include "
geopm_public.h
"
11
12
#ifdef GEOPM_DEBUG
16
#define GEOPM_DEBUG_ASSERT(condition, fail_message) \
17
if (!(condition)) { \
18
throw Exception(std::string(__func__) + ": "
+ fail_message, \
19
GEOPM_ERROR_LOGIC, __FILE__, __LINE__); \
20
}
21
#else
22
#define GEOPM_DEBUG_ASSERT(condition, fail_message)
23
#endif
24
25
#endif
Exception.hpp
geopm_public.h
Generated by
1.9.1