root/include/crm/common/results_compat.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   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 
  20 /**
  21  * \file
  22  * \brief Deprecated Pacemaker results API
  23  * \ingroup core
  24  * \deprecated Do not include this header directly. The APIs in this header, and
  25  *             the header itself, will be removed in a future release.
  26  */
  27 
  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

/* [previous][next][first][last][top][bottom][index][help] */