Cordio Stack and Cordio Profiles  r2p3-02rel0
wsf_assert.h File Reference

Assert macro. More...

#include "wsf_trace.h"
Include dependency graph for wsf_assert.h:

Go to the source code of this file.

Macros

#define WSF_ASSERT_ENABLED   FALSE
 Enable assertion statements.
 
#define WSF_ASSERT(expr)    if (!(expr)) {WsfAssert(MODULE_ID, (uint16_t) __LINE__);}
 Run-time assert macro. The assert executes when the expression is FALSE. More...
 
#define WSF_CT_ASSERT(expr)    extern char wsf_ct_assert[(expr) ? 1 : -1]
 Compile-time assert macro. This macro causes a compiler error when the expression is FALSE. Note that this macro is generally used at file scope to test constant expressions. Errors may result of it is used in executing code. More...
 

Functions

void WsfAssert (uint16_t modId, uint16_t line)
 Perform an assert action. More...
 
uint16_t WsfAssertNum (void)
 Get number of asserts. More...
 
void WsfAssertTrapEnable (bool_t enaAssertTrap)
 Enable assert trap. More...
 
void WsfAssertRegister (void(*cback)(void))
 Register assert handler. More...
 

Description

Assert macro.

Copyright (c) 2009-2018 Arm Ltd. All Rights Reserved. Arm Ltd. confidential and proprietary.

IMPORTANT. Your use of this file is governed by a Software License Agreement ("Agreement") that must be accepted in order to download or otherwise receive a copy of this file. You may not use or copy this file for any purpose other than as described in the Agreement. If you do not agree to all of the terms of the Agreement do not use this file and delete all copies in your possession or control; if you do not have a copy of the Agreement, you must contact Arm Ltd. prior to any use, copying or further distribution of this software.

Definition in file wsf_assert.h.