diff options
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -161,3 +161,7 @@ static bool data_from_str(char const *str, DataType type, void *value) { assert(0); return false; } + +static bool data_equal(DataType type, void const *a, void const *b) { + return memcmp(a, b, data_type_size(type)) == 0; +} |