Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a macro defined when IntelliSense is parsing?

Every compiler has a macro like __BORLANDC__ defined that enables the programmer to activate or deactivate certain behaviour or workarounds.

Is such a macro defined while IntelliSense parses files so I can activate workarounds for bugs?

#if defined __INTELLISENSE__
#define SOMETHING
#endif
like image 895
iFreilicht Avatar asked Nov 03 '14 22:11

iFreilicht


1 Answers

Yes. It's called __INTELLISENSE__, as you've guessed.

#ifdef __INTELLISENSE__
// ...
#endif
like image 175
Cameron Avatar answered Oct 20 '22 16:10

Cameron