1
0
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:
hazohelet 2019-10-02 03:21:05 +09:00 committed by Alexander Medvednikov
parent 30ca149be7
commit f35f6083cd

View File

@ -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);