Update release

This commit is contained in:
vczh
2023-04-17 02:49:56 -07:00
parent 46a934ae44
commit 877e499cad
22 changed files with 3961 additions and 2930 deletions
+4 -9
View File
@@ -843,15 +843,10 @@ Sys
#define DEFINE_COMPARE(TYPE)\
vint Sys::Compare(TYPE a, TYPE b)\
{\
auto result = TypedValueSerializerProvider<TYPE>::Compare(a, b);\
switch (result)\
{\
case IBoxedValue::Smaller: return -1;\
case IBoxedValue::Greater: return 1;\
case IBoxedValue::Equal: return 0;\
default:\
CHECK_FAIL(L"Unexpected compare result.");\
}\
auto result = a <=> b;\
if (result < 0) return -1;\
if (result > 0) return 1;\
return 0;\
}\
REFLECTION_PREDEFINED_PRIMITIVE_TYPES(DEFINE_COMPARE)