stm32f1xx_HBL/srv/assert.h

28 lines
635 B
C

/** @file assert.h
* Module providing assert macro
*
* The module implements the assert macro intended to allow catching critical
* issues during debug while having no influence in the release code
*/
#ifndef _ASSERT_H_
#define _ASSERT_H_
//--includes--------------------------------------------------------------------
#include "debug.h"
//--type definitions------------------------------------------------------------
//--functions-------------------------------------------------------------------
#if ASSERT
#define assert(condition) _assert
#else
#define assert(condition) do {} while (0)
#endif
#endif //_ASSERT_H_