Gang Of Coders
Home
About Us
Contact Us
All C Preprocessor Solutions on Gang of Coders
Total of 132 C Preprocessor Solutions
What is the difference between #define and const?
C++
Constants
C Preprocessor
Stringification - how does it work?
C++
C
C Preprocessor
Stringification
How to make a char string from a C macro's value?
C
C Preprocessor
Dry
Is it possible to print a preprocessor variable in C?
C
Variables
C Preprocessor
Objective-C: Forward Class Declaration
Objective C
C Preprocessor
Forward Declaration
Type of #define variables
C
C Preprocessor
Is there a preprocessor directive for detecting C++11x support?
C++
Gcc
C Preprocessor
Preprocessor Directive
Difference between Enum and Define Statements
C++
C
Enums
C Preprocessor
Which Cross Platform Preprocessor Defines? (__WIN32__ or __WIN32 or WIN32 )?
C++
Macros
C Preprocessor
Including a header file from another directory
C
Compiler Errors
Include
C Preprocessor
Does gcc define anything when -g is specified?
C
Debugging
Gcc
C Preprocessor
Why does this .c file #include itself?
C
C Preprocessor
C/C++, can you #include a file into a string literal?
C++
C
Include
C Preprocessor
String Literals
Why aren't there macros in C#?
C#
.Net
Macros
C Preprocessor
GCC dump preprocessor defines
Gcc
G++
C Preprocessor
Is there a preprocessor define that is defined if the compiler is MSVC?
C++
Visual C++
C Preprocessor
"#ifdef" inside a macro
C++
C Preprocessor
#pragma pack effect
C
C Preprocessor
Pragma Pack
How do I check OS with a preprocessor directive?
C
Operating System
C Preprocessor
Conditional Compilation
Why does the C preprocessor interpret the word "linux" as the constant "1"?
C
Linux
Gcc
C Preprocessor
#define macro for debug printing in C?
C
C Preprocessor
Overloading Macro on Number of Arguments
C
Macros
C Preprocessor
How do I see a C/C++ source file after preprocessing in Visual Studio?
C++
C
Debugging
Visual Studio-2005
C Preprocessor
How to make a variadic macro (variable number of arguments)
C
G++
C Preprocessor
Variadic
How to add a 'or' condition in #ifdef
C++
C
C Preprocessor
Why use apparently meaningless do-while and if-else statements in macros?
C++
C
C Preprocessor
C++ Faq
"No newline at end of file" compiler warning
C++
Compiler Construction
Warnings
C Preprocessor
__FILE__, __LINE__, and __FUNCTION__ usage in C++
C++
Debugging
Logging
C Preprocessor
When are C++ macros beneficial?
C++
C Preprocessor
How to manually deprecate members
Ios
Objective C
Swift
C Preprocessor
Deprecated
How can I concatenate twice with the C preprocessor and expand a macro as in "arg ## _ ## MACRO"?
C
Concatenation
Token
C Preprocessor
How do I show the value of a #define at compile-time?
Macros
C Preprocessor
Boost Preprocessor
Standard alternative to GCC's ##__VA_ARGS__ trick?
C
C99
C Preprocessor
Variadic Macros
C/C++ macro string concatenation
C++
C
C Preprocessor
"#include" a text file in a C program as a char[]
C
Include
C Preprocessor
What is the difference between #include <filename> and #include "filename"?
C++
C
Include
Header Files
C Preprocessor
What is the purpose of a single pound/hash sign (#) on its own line in the C/C++ preprocessor?
C++
C
Boost
C Preprocessor
What exactly does an #if 0 ..... #endif block do?
C Preprocessor
Why are #ifndef and #define used in C++ header files?
C++
C
C Preprocessor
Including one C source file in another?
C
Include
C Preprocessor
Code Organization
Project Organization
Are typedef and #define the same in c?
C
Macros
C Preprocessor
Typedef
Can gcc output C code after preprocessing?
C
C Preprocessor
Preprocessor
Preprocessor Directive
Should I use #define, enum or const?
C++
Enums
Bit Manipulation
C Preprocessor
C/C++ line number
C++
C
C Preprocessor
Line Numbers
Dynamic Compilation
#ifdef vs #if - which is better/safer as a method for enabling/disabling compilation of particular sections of code?
C++
C
If Statement
Coding Style
C Preprocessor
C++ preprocessor __VA_ARGS__ number of arguments
C++
C
C Preprocessor
Variadic Macros
Is there a portable way to print a message from the C preprocessor?
Printing
C Preprocessor
How to identify platform/compiler from preprocessor macros?
C++
Macros
Cross Platform
C Preprocessor
Comma in C/C++ macro
C++
C
Macros
C Preprocessor
What does ## (double hash) do in a preprocessor directive?
C++
C
Concatenation
C Preprocessor
What predefined macro can I use to detect clang?
C
Macros
Clang
C Preprocessor
Indenting #defines
C
C Preprocessor
Indentation
Code Formatting
Macro definition to determine big endian or little endian machine?
C
Architecture
Macros
C Preprocessor
Endianness
Pragma in define macro
C Preprocessor
Pragma
Stringification
Macro vs Function in C
C
Function
C Preprocessor
How to compare strings in C conditional preprocessor-directives
C
Conditional
C Preprocessor
Why are preprocessor macros evil and what are the alternatives?
C++
C++11
C Preprocessor
Concatenate int to string using C Preprocessor
C
C Preprocessor
Stringification
How to define a preprocessor symbol in Xcode
Objective C
Xcode
C Preprocessor
Why do most C developers use define instead of const?
C
Coding Style
C Preprocessor
The role of #ifdef and #ifndef
C Preprocessor
How to use Macro argument as string literal?
C++
C Preprocessor
String Literals
Understanding container_of macro in the Linux kernel
C
Linux Kernel
C Preprocessor
Multi line preprocessor macros
C++
C
C Preprocessor
Compile, Build or Archive problems with Xcode 4 (and dependencies)
Objective C
Compiler Construction
Xcode4
Clang
C Preprocessor
#ifdef inside #define
C
C Preprocessor
Easy way to use variables of enum types as string in C?
C
Enums
C Preprocessor
Why only define a macro if it's not already defined?
C
Macros
C Preprocessor
Ifndef
Finding out what the GCC include path is
C
Linux
Gcc
C Preprocessor
Can #if pre-processor directives be nested in C++?
C++
C Preprocessor
Preprocessor Directive
What are the applications of the ## preprocessor operator and gotchas to consider?
C
C Preprocessor
Kernighan and-Ritchie
Stringification
Boolean in ifdef: is "#ifdef A && B" the same as "#if defined(A) && defined(B)"?
C++
C Preprocessor
Conditional Compilation
How, exactly, does the double-stringize trick work?
C
C Preprocessor
Stringification
Why do all the C files written by my lecturer start with a single # on the first line?
C
C Preprocessor
What's the difference between the WIN32 and _WIN32 defines in C++
C++
C Preprocessor
Is it possible to iterate over arguments in variadic macros?
C
Foreach
C99
C Preprocessor
Variadic
This obfuscated C code claims to run without a main(), but what does it really do?
C
C Preprocessor
Obfuscation
Real-world use of X-Macros
C
Macros
C Preprocessor
X Macros
#define vs const in Objective-C
Objective C
Constants
C Preprocessor
Is the C99 preprocessor Turing complete?
C Preprocessor
Theory
Boost Preprocessor
Turing Complete
Error: invalid operands of types ‘const char [35]’ and ‘const char [2]’ to binary ‘operator+’
C++
String
C Preprocessor
Stdstring
#define in Java
Java
Preprocessor
C Preprocessor
Can boolean operators be used with the preprocessor?
C++
C Preprocessor
Can the C preprocessor be used to tell if a file exists?
C++
Include
C Preprocessor
Understanding the behavior of C's preprocessor when a macro indirectly expands itself
C
Macros
C Preprocessor
What are C macros useful for?
C
Macros
C Preprocessor
Language Design
Language Features
C# Macro definitions in Preprocessor
C#
Macros
C Preprocessor
Why use #define instead of a variable
C++
C Preprocessor
Preprocessor output
Gcc
Macros
C Preprocessor
What is the value of an undefined constant used in #if?
C++
C Preprocessor
Convert a preprocessor token to a string
C
C Preprocessor
Stringification
Should I use #include in headers?
C
C Preprocessor
File Organization
DEBUG macros in C++
C++
C
Debugging
C Preprocessor
Why not concatenate C source files before compilation?
C
Compilation
C Preprocessor
How to write a while loop with the C preprocessor?
C
While Loop
C Preprocessor
How do I generate an error or warning in the C preprocessor?
C Preprocessor
Preprocessor check if multiple defines are not defined
C
C Preprocessor
MIN and MAX in C
C
Max
Min
C Preprocessor
Array-size macro that rejects pointers
C
Arrays
Macros
C Preprocessor
Seeing expanded C macros
C
C Preprocessor
Can we have recursive macros?
C++
C
Macros
C Preprocessor
Combining C++ and C - how does #ifdef __cplusplus work?
C++
C
C Preprocessor
Extern C
Why would one use #include_next in a project?
Gcc
Include
C Preprocessor
Define preprocessor macro through CMake?
C++
Cmake
C Preprocessor
What is the meaning of lines starting with a hash sign and number like '# 1 "a.c"' in the gcc preprocessor output?
C
Gcc
C Preprocessor
Is #define banned in industry standards?
C
C Preprocessor
Preprocessor Directive
How to detect LLVM and its version through #define directives?
C
Clang
Llvm
C Preprocessor
Solution-wide #define
C#
C Preprocessor
C++ preprocessor: avoid code repetition of member variable list
C++
Templates
Arguments
C Preprocessor
How does the C preprocessor handle circular dependencies?
C
Linux
Gcc
C Preprocessor
Why is this macro replaced as 20 instead 10?
Macros
C Preprocessor
In a GNU C macro envSet(name), what does (void) "" name mean?
C
Gcc
Macros
C Preprocessor
Can a C macro definition refer to other macros?
C
C Preprocessor
Can you make custom operators in C++?
C++
Templates
Operators
C Preprocessor
Metaprogramming
MSVC doesn't expand __VA_ARGS__ correctly
Visual C++
C Preprocessor
Variadic Macros
Why is assert a macro and not a function?
C
Assert
C Preprocessor
How do I make a C++ macro behave like a function?
C++
C Preprocessor
Namespaces in C
C++
C
Namespaces
C Preprocessor
How to use #if inside #define in the C preprocessor?
C
C Preprocessor
Any utility to test expand C/C++ #define macros?
C++
Macros
C Preprocessor
Why does the C preprocessor consider enum values as equal?
C++
C Preprocessor
Is the sizeof(enum) == sizeof(int), always?
C
Enums
Constants
C Preprocessor
Does the C preprocessor strip comments or expand macros first?
C
Comments
C Preprocessor
C99
Is there a way to do a #define inside of another #define?
C++
C Preprocessor
Difference between preprocessor directives #if and #ifdef
C Preprocessor
How to detect reliably Mac OS X, iOS, Linux, Windows in C preprocessor?
C++
C
Cross Platform
C Preprocessor
Os Detection
Is there a good reason for always enclosing a define in parentheses in C?
C
C Preprocessor
Parentheses
Portability of #warning preprocessor directive
C++
Compiler Construction
Warnings
C Preprocessor
Portability
How to undefine a define at commandline using gcc
Gcc
Macros
C Preprocessor
How do I print a #defined constant in GDB?
C
Gdb
C Preprocessor
Why would someone use #define to define constants?
C++
Constants
C Preprocessor
Are empty macro definitions allowed in C? How do they behave?
C
C Preprocessor