<div dir="ltr">To generate a config.h, you have to find which macros are used in the source code, right?<div><br></div><div>Detecting used macros would be enough for my use case, but I can imagine code that #defines a default if not given a value by the compiler.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 6, 2017 at 8:34 AM, Boris Kolpackov <span dir="ltr"><<a href="mailto:boris@codesynthesis.com" target="_blank">boris@codesynthesis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Joshua Olson <<a href="mailto:0joshua.olson1@gmail.com">0joshua.olson1@gmail.com</a>> writes:<br>
<br>
> That sounds like a good way to do it. Or simply a list of macro definitions<br>
> the compiler detects and where they were detected.<br>
<br>
Now I am completely lost: "list of macro definitions the compiler detects<br>
and where they were detected" -- what does this even mean? I've never heard<br>
of compilers (I presume C++ compilers) detecting macros.<br>
<span class="HOEnZb"><font color="#888888"><br>
Boris<br>
</font></span></blockquote></div><br></div>