Closed GoogleCodeExporter closed 8 years ago
Is there a list of preprocessor directives somewhere?
I could start with the usual suspects
#include
#define
#ifdef
#ifndef
#elif
#else
#endif
#pragma
Original comment by mikesamuel@gmail.com
on 3 Oct 2009 at 7:49
Yeah, those are the main ones -- here is a list from the gcc docs:
http://gcc.gnu.org/onlinedocs/cpp/Index-of-Directives.html#Index-of-Directives
Looks like the only other relevant ones are #line, #error and #warning. I've
never seen
the others used, and most of them are non-standard anyway.
Original comment by benh...@gmail.com
on 4 Oct 2009 at 12:40
Fixed. At http://code.google.com/p/google-code-prettify/source/detail?r=85
Original comment by mikesamuel@gmail.com
on 5 Oct 2009 at 5:00
The latest download still puts the style "com" despite the explicit parsing for
preprocessor directives. In two lines, I could fix this to put in a different
class. I chose "ppr". Still, I'd rather not maintain a fork.
Original comment by tjpal...@gmail.com
on 11 Jan 2011 at 7:50
Original issue reported on code.google.com by
benh...@gmail.com
on 25 Aug 2009 at 1:16