pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
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
17extern "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
Function and executable result codes.