20#include "../asrtl/chann.h"
21#include "../asrtl/diag_proto.h"
22#include "../asrtl/log.h"
23#include "../asrtl/util.h"
33typedef void ( *asrt_diag_record_done_cb )(
void* ptr,
enum asrt_status status );
35enum asrt_diag_record_result
37 ASRT_DIAG_RECORD_ACCEPTED = 0,
38 ASRT_DIAG_RECORD_BUSY = 1,
46enum asrt_diag_record_result asrt_diag_client_record(
51 asrt_diag_record_done_cb done_cb,
61#if defined( __FILE_NAME__ )
62#define ASRT_FILENAME __FILE_NAME__
64#error "ASRT_FILENAME not defined and __FILE_NAME__ is unavailable on this compiler"
70#define ASRT_CHECK( diag, rec, x ) \
73 ( rec )->state = ASRT_TEST_FAIL; \
74 asrt_diag_client_record( \
75 ( diag ), ASRT_FILENAME, __LINE__, #x, NULL, NULL ); \
80#define ASRT_REQUIRE( diag, rec, x ) \
83 ( rec )->state = ASRT_TEST_FAIL; \
84 asrt_diag_client_record( \
85 ( diag ), ASRT_FILENAME, __LINE__, #x, NULL, NULL ); \
86 return ASRT_SUCCESS; \
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee ...
Definition: diag.h:28
Definition: diag_proto.h:30
A node in a doubly-linked channel chain.
Definition: chann.h:122