30 #ifndef __ROCCOM_ASSERTION_H
31 #define __ROCCOM_ASSERTION_H
42 (
const char*,
const char*,
const char*, int,
const char*);
62 #define COM_assertion(EX) \
63 ((EX)?((void)0): ::COM::assertion_fail( # EX , __FILE__, __LINE__, 0))
64 #define COM_assertion_msg(EX,msg) \
65 ((EX)?((void)0): ::COM::assertion_fail( # EX , __FILE__, __LINE__, msg))
67 #define COM_assertion(EX) ((void)0)
68 #define COM_assertion_msg(EX,msg) ((void)0)
73 #endif // __ROCCOM_ASSERTION_H
Failure_function set_error_handler(Failure_function handler)
Sets the handler for assertion-failures.
Failure_behaviour set_error_behaviour(Failure_behaviour eb)
Controls the behavior when an assertion fails.
void(* Failure_function)(const char *, const char *, const char *, int, const char *)
Function type for error handlers.
This file contains some definitions of macros and constants for Roccoms.
Failure_behaviour
Behavior of failures.
void assertion_fail(const char *, const char *, int, const char *)
Default error handler.