Y
Hacker News
new
|
ask
|
show
|
jobs
by
randbox
1481 days ago
It's not necessary to use macros. Just make both the sort function which the comparison function is passed to, as well as the comparison function itself, both "static inline". The compiler is smart enough to figure it out.