Add util/macros.h helper utility

This PR adds the `util/macros.h` file, which is for simple helper macros.

Simplifies #12