pacemaker
3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
include
crm
common
results_compat.h
Go to the documentation of this file.
1
/*
2
* Copyright 2024 the Pacemaker project contributors
3
*
4
* The version control history for this file may have further details.
5
*
6
* This source code is licensed under the GNU General Public License version 2
7
* or later (GPLv2+) WITHOUT ANY WARRANTY.
8
*/
9
10
#ifndef PCMK__CRM_COMMON_RESULTS_COMPAT__H
11
#define PCMK__CRM_COMMON_RESULTS_COMPAT__H
12
13
#include <glib.h>
// TRUE, FALSE
14
#include <
crm/common/results.h
>
// crm_abort()
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
28
#define CRM_ASSERT(expr) do { \
29
if (!(expr)) { \
30
crm_abort(__FILE__, __func__, __LINE__, #expr, TRUE, FALSE); \
31
} \
32
} while(0)
33
34
#ifdef __cplusplus
35
}
36
#endif
37
38
#endif // PCMK__CRM_COMMON_RESULTS_COMPAT__H
results.h
Function and executable result codes.
Generated on Wed Jan 8 2025 16:55:39 for pacemaker by
1.8.14