Mistake on this page?
Report an issue in GitHub or email us
Macros | Functions
wsf_assert.h File Reference

Assert macro. More...

#include "wsf_trace.h"

Go to the source code of this file.

Macros

#define WSF_ASSERT_ENABLED   FALSE
 Enable assertion statements. More...
 
#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...
 

Detailed Description

Assert macro.

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

Copyright (c) 2019-2020 Packetcraft, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file wsf_assert.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.