aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/TextMsg.H
blob: 023bf11c811168f84ec51bc42232f8789a85d5bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Copyright 2022 Luca Fedeli
 *
 * This file is part of WarpX.
 *
 * License: BSD-3-Clause-LBNL
 */

#ifndef WARPX_TEXT_MSG_H_
#define WARPX_TEXT_MSG_H_

#include <ablastr/utils/TextMsg.H>

#define WARPX_ALWAYS_ASSERT_WITH_MESSAGE(EX,MSG) (EX)?((void)0) : ablastr::utils::TextMsg::Assert( # EX , __FILE__, __LINE__ , MSG)

#define WARPX_ABORT_WITH_MESSAGE(MSG) ablastr::utils::TextMsg::Abort( __FILE__, __LINE__ , MSG)

namespace Utils::TextMsg
{
    using namespace ablastr::utils::TextMsg;
} // namespace Utils::TextMsg

#endif // WARPX_TEXT_MSG_H_