Definition in file assert_pp.h.
Include dependency graph for assert_pp.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | ASSERT_FUNCATTR_NORETURN |
Empty 'noreturn' attribute for unsupported compilers. | |
#define | pp_decl(decl) decl |
Wrapper for declarations that need to be conditionally compiled because they are only used by a precondition. | |
#define | pp_block(block) block |
Wrapper for code blocks that need to be conditionally compiled because they are only used by a precondition. | |
#define | require(precon) |
Require an expression to be true. | |
#define | ensure(postcon) |
Ensure an expression to be true. | |
Functions | |
int | pp_failed (char *file, unsigned int line, const char *func, char *type, char *expr) ASSERT_FUNCATTR_NORETURN |
The routine which prints failure messages and aborts the program. |
|
Value: ((void)((postcon) ? 0 : \ (pp_failed(__FILE__,__LINE__,__PRETTY_FUNCTION__,"postcondition",__STRING(postcon))))) If the expression turns out to be false, pp_failed is called with the location of this use of ensure.
Definition at line 106 of file assert_pp.h. Referenced by cpCreateChildProcess(), cpDeleteChildProcess(), gkFormatPreamble(), gkFormatUpdate(), HeyParser::HeyParser(), paChildPart(), paGetAdvocate(), paParentPart(), rk_cpu_reserve_create(), rk_cpu_reserve_delete(), rk_cpu_reserve_get_attr(), rk_cpu_reserve_tick(), rk_proc_get_rset(), rk_resource_set_attach_process(), rk_resource_set_create(), rk_resource_set_destroy(), rk_resource_set_detach_process(), rk_resource_set_get_cpu_rsv(), rk_resource_set_get_name(), rk_resource_set_set_name(), rk_stub_next_tick(), rktChildPart(), rktParentPart(), RKTask::SetComputeTime(), and string_to_microsec(). |
|
Wrapper for code blocks that need to be conditionally compiled because they are only used by a precondition.
Definition at line 77 of file assert_pp.h. Referenced by cpSampleUsage(). |
|
Wrapper for declarations that need to be conditionally compiled because they are only used by a precondition.
Definition at line 70 of file assert_pp.h. |
|
|
The routine which prints failure messages and aborts the program. Defined in misc/src/assert_pp.c.
Definition at line 23 of file assert_pp.c. |