Loading...
Searching...
No Matches
expect.h File Reference

test "expect condition" utility function More...

Detailed Description

#include <stdio.h>
#include "compiler_hints.h"
#include "panic.h"
+ Include dependency graph for expect.h:

Go to the source code of this file.

Macros

#define expect(cond)   (likely(cond) ? (void)0 : _expect_failure(__FILE__, __LINE__))
 abort the program if condition is false
 

Functions

static NORETURN void _expect_failure (const char *file, unsigned line)
 Function to handle failed expectation.