add C default comparison operator macros for future bitwise comparisons

pull/2204/head
hazohelet 2019-10-02 03:21:05 +09:00 committed by Alexander Medvednikov
parent 30ca149be7
commit f35f6083cd
1 changed files with 5 additions and 0 deletions

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