mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
add C default comparison operator macros for future bitwise comparisons
This commit is contained in:
parent
30ca149be7
commit
f35f6083cd
@ -123,6 +123,11 @@ typedef map map_string;
|
||||
#define _IN(typ, val, arr) array_##typ##_contains(arr, val)
|
||||
#define _IN_MAP(val, m) map__exists(m, val)
|
||||
#define DEFAULT_EQUAL(a, b) (a == b)
|
||||
#define DEFAULT_NOT_EQUAL(a, b) (a != b)
|
||||
#define DEFAULT_LT(a, b) (a < b)
|
||||
#define DEFAULT_LE(a, b) (a <= b)
|
||||
#define DEFAULT_GT(a, b) (a > b)
|
||||
#define DEFAULT_GE(a, b) (a >= b)
|
||||
//================================== GLOBALS =================================*/
|
||||
byteptr g_str_buf;
|
||||
int load_so(byteptr);
|
||||
|
Loading…
Reference in New Issue
Block a user