<commit_before>//=======================================================================
// Copyright <NAME> 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)
//=======================================================================

#ifndef EDDIC_ASSERT_H
#define EDDIC_ASSERT_H

#include <cassert>

#include <boost/assert.hpp>

/*!
 * \def ASSERT(condition, message)
 * \brief Verify that the condition is true. If not, fails and display the specified message. 
 * \param condition The condition that have to be true
 * \param message The message to be printed if the assertion is not verified. 
 */
#define ASSERT(condition, message) BOOST_ASSERT_MSG(condition, message);

/*!
 * \def ASSERT_PATH_NOT_TAKEN(message)
 * \brief Assert that this path is not taken. If it is taken, fails and display the specified message. 
 * \param message The message to be printed if the assertion is not verified. 
 */
#define ASSERT_PATH_NOT_TAKEN(message) BOOST_ASSERT_MSG(false, message); assert(false);

#endif<commit_msg>Use a builtin to prevent warnings<commit_after>//=======================================================================
// Copyright <NAME> 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)
//=======================================================================

#ifndef EDDIC_ASSERT_H
#define EDDIC_ASSERT_H

#include <cassert>

#include <boost/assert.hpp>

/*!
 * \def ASSERT(condition, message)
 * \brief Verify that the condition is true. If not, fails and display the specified message. 
 * \param condition The condition that have to be true
 * \param message The message to be printed if the assertion is not verified. 
 */
#define ASSERT(condition, message) BOOST_ASSERT_MSG(condition, message);

#ifdef __GNUC__

/*!
 * \def ASSERT_PATH_NOT_TAKEN(message)
 * \brief Assert that this path is not taken. If it is taken, fails and display the specified message. 
 * \param message The message to be printed if the assertion is not verified. 
 */
#define ASSERT_PATH_NOT_TAKEN(message) BOOST_ASSERT_MSG(false, message); assert(false); __builtin_unreachable();

#else

/*!
 * \def ASSERT_PATH_NOT_TAKEN(message)
 * \brief Assert that this path is not taken. If it is taken, fails and display the specified message. 
 * \param message The message to be printed if the assertion is not verified. 
 */
#define ASSERT_PATH_NOT_TAKEN(message) BOOST_ASSERT_MSG(false, message); assert(false);

#endif

#endif
{'fraction_non_alphanumeric': 0.19297583081570996, 'fraction_numerical': 0.0075528700906344415, 'mean_word_length': 4.912946428571429, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4694931', 'n_tokens_mistral': 748, 'n_tokens_neox': 699, 'n_words': 271}