Programming philosophical question: what is the state of __cplusplus macro inside an extern "C" block?

#programming

Follow

@sos For anyone confused: C preprocessor operates on plain text; it doesn't know that it's in an extern block, so it's exactly the same inside and outside 🤓

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml