Have you tried to understand what cog does? It's a completely different use than the C preprocessor.
In a way, if you only consider the C preprocessor as part of the C compilation pipeline (rather than as a separate tool), there are at least similarities.
Much more so than e.g. php or jinja comparisons anyway.