petejkim/expecta — pull request #38 by robrix (2013-07-22 21:04:08+00:00)
Title: Ensure matcher category loading with constructors.

This replaces the unused EXPFixCategoriesBug… classes with static constructor functions.

There are no warnings about classes not subclassing NSObject, the symbols can’t clash at link time, and it doesn’t pollute the runtime’s namespaces.

__attribute__((constructor)) is well-supported by both GCC and clang.