• 请不要在回答技术问题时复制粘贴 AI 生成的内容
funcman
V2EX  ›  程序员

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

  •  
  •   funcman ·
    funcman · Mar 20, 2013 · 6603 views
    This topic created in 4832 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   ·   888 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:44 · PVG 04:44 · LAX 13:44 · JFK 16:44
    ♥ Do have faith in what you're doing.