There are related but not exactly the same. Macros are more similar to comment links.
CustomBuildAction - actions that are executed during compilation. For historic reasons their syntax is different and more limited.
CommentLinks / Macros - User initiated actions.
It is possible that macros will replace CustomBuildActions completely in the future.