Preprocessor equality test, is this standard?

后端 未结 5 1924
死守一世寂寞
死守一世寂寞 2021-02-05 11:27

I had envisaged one of these in the project preferences

  • TESTING = HOST
  • TESTING = TARGET
5条回答
  •  情歌与酒
    2021-02-05 11:49

    My final implementation is to set BUILDOPT to 1 to enable the code, > 1 to disable. Then the #if becomes #if 1/BUILDOPT==1.

提交回复
热议问题