[cfe-dev] How to define a symbol?

Yaakov Davis yaakov.davis at gmail.com
Sat Apr 7 11:09:04 PDT 2012


I want to programatically define a symbol 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/4aefe8f9/attachment.html>


More information about the cfe-dev mailing list