![]() |
Dataflow Runtime API
3.0.3.0
|
#include <Imt.Base.Core.Platform/Platform.h>
#include "AssertActionManager.h"
#include "DiagnosticsConfigApp.h"
Classes | |
struct | STATIC_ASSERTION_FAILURE< true > |
Partial specialization of STATIC_ASSERTION_FAILURE only for true. More... | |
struct | STATIC_ASSERT_TEST< int32_t > |
Interface static_assert_test. More... | |
Macros | |
#define | ASSERT_JOIN(X, Y) DO_ASSERT_JOIN(X, Y) |
#define | DO_ASSERT_JOIN(X, Y) X##Y |
#define | ASSERT_COMPILER(B) |
Functions | |
void | ASSERT_EX1 (const bool condition, const char_t *const pMessage) |
"Assert and throw exception" (ASSERT_EX). More... | |
void | ASSERT_EX (const bool condition) |
void | ASSERT_DEBUG1 (const bool condition, const char_t *const pMessage) |
"Assert for debugging only" (ASSERT_DEBUG). More... | |
void | ASSERT_DEBUG (const bool condition) |
#define ASSERT_COMPILER | ( | B | ) |
#define ASSERT_JOIN | ( | X, | |
Y | |||
) | DO_ASSERT_JOIN(X, Y) |
#define DO_ASSERT_JOIN | ( | X, | |
Y | |||
) | X##Y |
|
inline |
"Assert for debugging only" (ASSERT_DEBUG).
Use this sort of assertion only while debugging. This flavor of asserts will be compiled only for a debug build on the the developer machine and on the target as well.
condition | When this condition evaluates to false the handler will be called |
pMessage | The message to specify the error that has occurred |
|
inline |
"Assert and throw exception" (ASSERT_EX).
Even so we do not have exception support use this macro to test conditions for which it is not secure to continue safely when the condition evaluates to false. The registered handler is responsible to react appropriately. There is a second version of this macro with a postfix of 1. It takes additionally a second parameter. This parameter is for future extensions in the debugging environment. It takes a c-string which will be used to indicate the reason of the failure.
condition | When this condition evaluates to false the handler will be called |
pMessage | The message to specify the error that has occurred |