ae2f_docs
Loading...
Searching...
No Matches
Fun.h
Go to the documentation of this file.
1
/**
2
* @file Fun.h
3
* @author ae2f
4
* @brief
5
* @date 2025-02-01
6
*
7
* @copyright Copyright (c) 2025
8
*
9
*/
10
#
ifndef
ae2f_Cmp_Fun_h
11
#
define
ae2f_Cmp_Fun_h
12
13
typedef
int
14
/** @brief
15
* A predefined returning data type for @ref ae2f_fpCmp_t.
16
* @see ae2f_CmpFunRet_EQUAL
17
* @see ae2f_CmpFunRet_RISLESSER
18
* @see ae2f_CmpFunRet_LISLESSER
19
*/
20
ae2f_CmpFunRet_t
,
21
22
/**
23
* @brief
24
* It is an api for following approximate pseudo code.
25
* ```c
26
* const void *l, *r;
27
* return *l - *r;
28
* ```
29
* @see ae2f_CmpFunRet_t
30
**/
31
(*ae2f_fpCmp_t)(
const
void
* l,
const
void
* r);
32
33
/**
34
* @brief they are same
35
* @see ae2f_CmpFunRet_t
36
**/
37
#
define
ae2f_CmpFunRet_EQUAL
0
38
39
/**
40
* @brief right is lesser
41
* @see ae2f_CmpFunRet_t
42
* */
43
#
define
ae2f_CmpFunRet_RISLESSER
1
44
45
/**
46
* @brief left is lesser
47
* @see ae2f_CmpFunRet_t
48
*/
49
#
define
ae2f_CmpFunRet_LISLESSER
-
1
50
51
#
endif
ae2f_CmpFunRet_t
int ae2f_CmpFunRet_t
A predefined returning data type for ae2f_fpCmp_t.
Definition
Fun.h:20
submod
ae2f
Core
inc
ae2f
Cmp
Fun.h
Generated by
1.15.0