Tag: preprocessor

62 votes
5 answers
1.3K views
Why does the C preprocessor interpret the word "linux" as the constant "1"?

Why does the C preprocessor in GCC interpret the word linux (small letters) as the constant 1? test.c: #incl

avatar
Kurtis
0 1 0 9
asked 07 September, 2021
61 votes
2 answers
1.6K views
How do I use theme preprocessor functions for my own templates?

I have several .tpl.php files for nodes, CCK fields, and Views theming. These template files have a lot of log

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
51 votes
17 answers
2.3K views
#ifdef replacement in the Swift language

In C/C++/Objective C you can define a macro using compiler preprocessors. Moreover, you can include/exclude so

avatar
Rufus
0 1 0 9
asked 07 September, 2021