blob: c6e8bc49d4aa7491eedceaef3992456fa6e2e27c [file] [log] [blame]
Jim Flynnbbfe6032020-07-20 16:57:44 +01001//
2// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
8#include <cassert>
9
10namespace arm
11{
12
13namespace pipe
14{
15
16#ifndef NDEBUG
17# define ARM_PIPE_ASSERT(COND) assert(COND)
18# define ARM_PIPE_ASSERT_MSG(COND, MSG) assert((COND) && MSG)
19#else
20# define ARM_PIPE_ASSERT(COND)
21# define ARM_PIPE_ASSERT_MSG(COND, MSG)
22#endif
23} // namespace pipe
24} //namespace arm