From f35f6083cd73ecc0b44b57bb72d59614d99d10dd Mon Sep 17 00:00:00 2001 From: hazohelet <48541090+hazohelet@users.noreply.github.com> Date: Wed, 2 Oct 2019 03:21:05 +0900 Subject: [PATCH] add C default comparison operator macros for future bitwise comparisons --- compiler/cheaders.v | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/cheaders.v b/compiler/cheaders.v index 80a4c81e3b..83b4973a42 100644 --- a/compiler/cheaders.v +++ b/compiler/cheaders.v @@ -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);