开发者

Visual C++ preprocessor definitions

Is there a way to transfer C++ preprocessor definitions into a custom pre-link step procedure call as a command-line parameter or export them into a file any other way?
Example: Let's say, I have a c++ project, and in it's Debug configuration I put a preprocessor definition like MAKUMBA_OBA=0x13

Then I add custom pre-link step which executes some javascript like

sarahjessicaparker.js /to tomsrhinoplasty $(MAKUMBA_OBA)

It would be great,开发者_JAVA技巧 if it just worked, but I never get a third parameter in my js. So the question is: how to pass a preprocessor definition to s script?


There is no way to do such a thing. The only acceptable solution is to analyze the build profile name and act accordingly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜