macro lex_compare($lhs, $rhs) { ... }

Helper macro for implementing a lexicographic order.

The macro will short-circuit the enclosuing function if lhs and rhs are not equal and continue if they are.

Example