Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Is the C Preprocessor Turing complete?

Name: Anonymous 2009-07-07 2:16

Is the C preprocessor turing complete? Of course there are no #while loops or anything, but consider this:

"hax.h":
#if VALUE < 1
#define VALUE 1
#else
#include "hax.h"
#endif


Here, hax.h include itself, creating a loop. There isn't a way to pass a value to the included file, though.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List