dxd - dynax driver framework 3.0.0d222
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx_assert.h File Reference
#include "dx_macros.h"
#include "dx_exception.h"
#include <iostream>
Include dependency graph for dx_assert.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  dx
 dynax driver framework interface namespace

Macros

#define dx_assert(expression, ...)
#define dx_assert_along   dx_assert
#define dx_assert_discard   dx_assert

Functions

os_result dx::_assert (os_result error, const char *expression, const char *frame, const char *file, unsigned int line)
 the failing expression, its frame and dx::describe of the result to stderr, then dx::halt; a zero result passes through. Only a debug build calls it: release drops the diagnostics and keeps (dx_assert_along) or drops (dx_assert_discard) the expression itself
template<typename ... arg_t>
os_result dx::_assert (os_result error, const char *expression, const char *frame, const char *file, unsigned int line, arg_t... args)

Macro Definition Documentation

◆ dx_assert

#define dx_assert ( expression,
... )
Value:
dx::_assert (expression, #expression, __PRETTY_FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__)
os_result _assert(os_result error, const char *expression, const char *frame, const char *file, unsigned int line)
the failing expression, its frame and dx::describe of the result to stderr, then dx::halt; a zero res...
Definition dx_assert.h:39
#define __PRETTY_FUNCTION__
mock compiler idiosyncrasies
Definition windows/dx_platform.h:50

◆ dx_assert_along

#define dx_assert_along   dx_assert

◆ dx_assert_discard

#define dx_assert_discard   dx_assert

(c) copyright 2009 dynamic acoustics e.U. generated on

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.