cmp.c

Implements comparator functions.

  • Author: Edward Jones
  • Date: 2021-09-17

Source file

CMP

Create a generic comparator function.

  • Param name: Name of the type
  • Param type: Type to compare

Returns: A function which compares two types

#	define CMP(name, type) Cmp cmp_##name##s(void* v1, void* v2) COMPARISON_BODY(type)