NHS31xx SW API
assert.h
1 /*
2  * Copyright 2014-2017 NXP
3  * This software is owned or controlled by NXP and may only be used strictly
4  * in accordance with the applicable license terms. By expressly accepting
5  * such terms or by downloading, installing, activating and/or otherwise using
6  * the software, you are agreeing that you have read, and that you agree to
7  * comply with and are bound by, such license terms. If you do not agree to
8  * be bound by the applicable license terms, then you may not retain, install,
9  * activate or otherwise use the software.
10  */
11 
12 #ifndef __ASSERT_H_
13 #define __ASSERT_H_
14 
27 #ifdef DEBUG
28  #define ASSERT(expr) do { if (expr) {} else { __asm__("BKPT"); } } while (0)
29 #else
30  #define ASSERT(expr) /* Prevent a compiler warning for unused variables */
31 #endif
32 
33 #endif