[cfe-dev] How to programatically define a symbol?

Yaakov Davis yaakov.davis at gmail.com
Sat Apr 7 11:17:10 PDT 2012


I want to programatically define a symbol, e.g. FOO, such that the code
"#if defined(FOO)" will evaluate to true during pre-processing.
How do I that?

I tried addMacroDef("FOO"), and other methods, but to no avail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120407/b1c0609a/attachment.html>


More information about the cfe-dev mailing list