Added equal_fn to evstring TypeData

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2024-10-13 14:45:17 +03:00
parent ad569f5ed8
commit df24bf2940

View File

@@ -44,7 +44,6 @@
#endif
typedef char *evstring;
TYPEDATA_GEN(evstring);
typedef enum {
EV_STR_ERR_NONE = 0,
@@ -193,6 +192,16 @@ evstring_findLastChar(
const evstring text,
const char c);
DEFINE_EQUAL_FUNCTION(evstring, Default)
{
return evstring_cmp(*(evstring*)self, *(evstring*)other) == 0;
}
TYPEDATA_GEN(evstring,
EQUAL(Default)
);
#if defined(EV_STR_IMPLEMENTATION)
#if EV_OS_WINDOWS