<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanx, guys!<div><br><div><div>On Jun 13, 2011, at 6:25 PM, Ted Kremenek wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Jun 13, 2011, at 9:14 AM, Eli Friedman wrote:<br><br><blockquote type="cite">On Mon, Jun 13, 2011 at 8:45 AM, marc hoffman <<a href="mailto:mh@elitedev.com">mh@elitedev.com</a>> wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">i'm hoping this is not NDA-covered, but with LLV/Clang itself being open<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">source i assume it's not:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">at WWDC i was told there is a functionality in clang/LLVM to check for<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">availability of specific features in general, and for whether the current<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">code is being compiled with ARC or not, specifically, via an #if(def) - the<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">goal being ro write a piece of code that can compile with and w/o ARC, by<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">#if(def)ing a handful of retain/release calls.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">i was told this was well documented in the clang docs, but i've been unable<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">to find anything regarding this - is anyone here aware of this featyre (and<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">of the option to check for that represents ARC) and could point me into the<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">right direction?<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">ARC hasn't landed in the public repository yet.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">In terms of feature ifdefs, see<br></blockquote><blockquote type="cite"><a href="http://clang.llvm.org/docs/LanguageExtensions.html#feature_check">http://clang.llvm.org/docs/LanguageExtensions.html#feature_check</a> .<br></blockquote><br>Marc,<br><br>More specifically, you will be able to use:<br><br> #ifdef __has_feature(objc_arc)<br><br>Cheers,<br>Ted<br></div></blockquote></div><br></div></body></html>