Is there a built-in way in the C world to easily backtrack your way to a #define?

Like, if I

#define ERROR_BECAUSE_THING 6

I don't think there a trivial path back from 6 to println("ERROR_BECAUSE_THING" that isn't something extra you're building yourself.

Follow

@mhoye technically, it's the preprocessor just doing search and replace before it gets to the actual compiler bits, right? Which is why the answer is "grep" ...

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.