Will #if RELEASE work like #if DEBUG does in C#?

前端 未结 11 1764
时光说笑
时光说笑 2020-11-30 17:39

In all the examples I\'ve seen of the #if compiler directive, they use \"DEBUG\". Can I use \"RELEASE\" in the same way to exclude code that I don\'t want to run when compi

11条回答
  •  孤城傲影
    2020-11-30 17:54

    I've never seen that before...but I have seen:

    #if (DEBUG == FALSE)
    

    and

    #if (!DEBUG)
    

    That work for ya?

提交回复
热议问题