Add macro to register specifications.