asrt
Automated System Runtime Testing library
Loading...
Searching...
No Matches
status_to_str.h
1
11
#ifndef ASRT_STATUS_TO_STR_H
12
#define ASRT_STATUS_TO_STR_H
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
#include "./status.h"
19
20
inline
static
char
const
* asrt_status_to_str(
enum
asrt_status st )
21
{
22
switch
( st ) {
23
case
ASRT_VERSION_ERR:
24
return
"version mismatch"
;
25
case
ASRT_KEY_FORBIDDEN_ERR:
26
return
"key forbidden on array child"
;
27
case
ASRT_KEY_REQUIRED_ERR:
28
return
"key required on object child"
;
29
case
ASRT_CHANN_NOT_FOUND:
30
return
"channel not found"
;
31
case
ASRT_INTERNAL_ERR:
32
return
"internal error"
;
33
case
ASRT_TIMEOUT_ERR:
34
return
"timeout"
;
35
case
ASRT_BUSY_ERR:
36
return
"busy"
;
37
case
ASRT_SEND_ERR:
38
return
"send error"
;
39
case
ASRT_RECV_ERR:
40
return
"receive error"
;
41
case
ASRT_SIZE_ERR:
42
return
"size error"
;
43
case
ASRT_ALLOC_ERR:
44
return
"allocation error"
;
45
case
ASRT_ARG_ERR:
46
return
"argument error"
;
47
case
ASRT_INIT_ERR:
48
return
"lifecycle stage error"
;
49
case
ASRT_SUCCESS:
50
return
"success"
;
51
}
52
return
"unknown error"
;
53
}
54
55
#ifdef __cplusplus
56
}
57
#endif
58
59
#endif
asrtl
status_to_str.h
Generated by
1.9.5