• Z
    New macros for controlling use of weak linkage · cadee02e
    Zane D. Purvis 提交于
     - `UNITY_WEAK_ATTRIBUTE`, if defined, is placed before declarations of weakly
       linked symbols. If not manually defined, it will be automatically set to
       `__attribute__((weak))` on GCC and Clang, except for Clang for Win32.
     - `UNITY_WEAK_PRAGMA`, if defined, will cause preprocessor to emit
       `#pragma weak setUp`, etc. Ignored if `UNITY_WEAK_ATTRIBUTE` is defined.
     - `UNITY_NO_WEAK` undefines both of the above resulting in no weakly
       linked symbols.
    
    Work around for ThrowTheSwitch/Unity#93
    cadee02e
unity.c 37.1 KB