[Qt-creator] Make QtCreator know that __SSE2__ is defined
Etienne Sandré-Chardonnal
etienne.sandre at polytechnique.org
Sun Nov 1 12:49:15 CET 2009
Dear all,
In my code I have this kind of thing:
#ifdef __SSE2__
... // Some template specialization so that my generic vector class is
optimized for float and double.
#endif
However, as QTCreator does not know that __SSE2__ is declared at compile
time ( -march pentium4 ), all is grayed out in the #idef block, and I have
no quick access to functions, no error highlighting, etc...
How can I make the editor consider that __SSE2__ is defined, so that it
parses my optimized conditionnal code, but without changing anything at
compile time (I do not want to force __SSE2__ if I set the -march to non-x86
platform for instance, I want the compiler to decide)
Thanks in advance
Regards,
Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20091101/d5ed1652/attachment.html
More information about the Qt-creator-old
mailing list