geopm
3.1.1.dev579+g75d9c8b9
GEOPM - Global Extensible Open Power Manager
Toggle main menu visibility
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
h
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
h
i
j
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
g
m
n
Related Symbols
Files
File List
File Members
All
_
c
d
g
m
Functions
g
m
Typedefs
Enumerations
Enumerator
g
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
libgeopmd
include
geopm_debug.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 - 2025 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.8