Advanced Preprocessor

Lesson overview

Topics covered: macro arguments, ## token pasting, # stringification.

Preprocessor Directives

#include - includes header file
#define MAX 100 - defines constant
#ifdef, #else, #endif - conditional compilation
#warning - generate warning during compilation

Article author: Arthur Isaev

Banner image