ae2f_docs
Loading...
Searching...
No Matches
Ftx.c
Go to the documentation of this file.
1/**
2 * @file Ftx.c
3 * @brief Enum duplication check.
4 * */
5
6#include <ae2f/Sys/Ftx.h>
7#include <assert.h>
8
9int main(void) {
10 {
11 ae2f_eSysFtxWait wait = ae2f_SysFtxWait_GOOD;
12 switch(wait) {
14 case ae2f_SysFtxWait_INVAL:
15 case ae2f_SysFtxWait_PTRINVAL:
16 case ae2f_SysFtxWait_TMOUT:
17 case ae2f_SysFtxWait_MTXNCOVERABLE:
18 case ae2f_SysFtxWait_INTERRUPTED:
19 case ae2f_SysFtxWait_MISMATCH:
20 case ae2f_SysFtxWait_NO_IMP:
21 case ae2f_SysFtxWait_MTXBLK:
22 case ae2f_SysFtxWait_MTXOWNDEAD:
23 case ae2f_SysFtxWait_MTXNOWN:
24 break;
25
26 default:
27 assert(0 && "");
28 }
29 }
30
31 {
32 ae2f_eSysFtxWake wake = ae2f_SysFtxWake_GOOD;
33 switch(wake) {
34 case ae2f_SysFtxWake_GOOD:
35 case ae2f_SysFtxWake_INVAL:
36 case ae2f_SysFtxWake_NO_IMP:
37 case ae2f_SysFtxWake_PTRINVAL:
38 case ae2f_SysFtxWake_MTXBLK:
39 case ae2f_SysFtxWake_MTXNOWN:
40 case ae2f_SysFtxWake_MTXOWNDEAD:
41 case ae2f_SysFtxWake_MTXNCOVERABLE:
42 break;
43 default:
44 assert(0 && "");
45 }
46 }
47
48 return 0;
49}
@ ae2f_SysFtxWait_GOOD
Succesful.
Definition Ftx.core.h:22