ArmNN
 24.08
Assert.hpp
Go to the documentation of this file.
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
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6