Feature like "#ifdef CLION" that just work in editor?
已回答
For example:
#ifdef CLION
printf("Editting.");
#else
printf("Running.");
#endif
请先登录再写评论。
@C Zijie could you please describe the issue in detail? We have a predefined macro intended for checking if parsing is done in the IDE: https://youtrack.jetbrains.com/issue/CPP-1296#comment=27-1846360. Is that what you're looking for?
@Anna Falevskaya , Thank you, this is what I want.