• smpl@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 days ago

    The standard agrees with you that #ifdef and #ifndef are equal to #if defined and #if !defined, but your #if build_env "local" example does not make much sense the me. #if only takes constant expressions which can be evaluated at translation time. It can’t compare strings.