Jim Flynn | bbfe603 | 2020-07-20 16:57:44 +0100 | [diff] [blame] | 1 | // |
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 | |||||
10 | namespace arm | ||||
11 | { | ||||
12 | |||||
13 | namespace 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 |