pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
results_compat.h
Go to the documentation of this file.
1 /*
2  * Copyright 2022-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 Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__CRM_COMMON_RESULTS_COMPAT__H
11 #define PCMK__CRM_COMMON_RESULTS_COMPAT__H
12 
13 #include <crm/common/results.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
28 #define CRM_ASSERT(expr) do { \
29  if (!(expr)) { \
30  crm_abort(__FILE__, __func__, __LINE__, #expr, TRUE, FALSE); \
31  } \
32  } while(0)
33 
35 const char *bz2_strerror(int rc);
36 
39 
40 #ifdef __cplusplus
41 }
42 #endif
43 
44 #endif // PCMK__CRM_COMMON_MAINLOOP_COMPAT__H
const char * bz2_strerror(int rc)
Definition: results.c:1217
enum crm_exit_e crm_exit_t
Function and executable result codes.
crm_exit_t crm_errno2exit(int rc)
Definition: results.c:1250