V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
funcman
V2EX  ›  程序员

#if defined(A) || defined(B) 为啥无效?

  •  
  •   funcman ·
    funcman · Mar 20, 2013 · 6515 views
    This topic created in 4790 days ago, the information mentioned may be changed or developed.
    C预处理~

    怎么写才对……
    4 replies    1970-01-01 08:00:00 +08:00
    funcman
        1
    funcman  
    OP
       Mar 20, 2013
    操,搞错了。
    XCode没定义TARGET_OS_IPHONE
    怪不得无效……
    funcman
        2
    funcman  
    OP
       Mar 20, 2013
    等等,TARGET_OS_IPHONE是ObjC宏。
    pright
        3
    pright  
       Mar 21, 2013   ❤️ 1
    没问题啊
    funcman
        4
    funcman  
    OP
       Mar 21, 2013
    @pright 是没问题,是我搞错了。:)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:11 · PVG 07:11 · LAX 16:11 · JFK 19:11
    ♥ Do have faith in what you're doing.