xref: /aosp_15_r20/external/armnn/include/armnn/utility/Assert.hpp (revision 89c4ff92f2867872bb9e2354d150bf0c8c502810)
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 armnn
11 {
12 
13 #ifndef NDEBUG
14 #   define ARMNN_ASSERT(COND) assert(COND)
15 #   define ARMNN_ASSERT_MSG(COND, MSG) assert((COND) && MSG)
16 #else
17 #   define ARMNN_ASSERT(COND)
18 #   define ARMNN_ASSERT_MSG(COND, MSG)
19 #endif
20 
21 } //namespace armnn