Category "c-preprocessor"

Create an identifier at compile time that has the line number as part of it [duplicate]

I want a C++ preprocessor macro that creates a new identifier with the line number as part of it. This is for using the identifier as a throwa

What is the #cmakedefine preprocessor directive?

I am looking through the source-code for ZeroMQ, which I want to build from source. Inside I found platform.hpp.in, which contains: ... #cmakedefine ZMQ_HAVE_

Can we have recursive macros?

I want to know if we can have recursive macros in C/C++? If yes, please provide a sample example. Second thing: why am I not able to execute the below code? Wh