Skip to content
  • Francois Ferrand's avatar
    C++: fix handling of empty va_args macro arguments. · 4d18710f
    Francois Ferrand authored
    
    
    Preprocessor did not correctly handle when variadic macro arguments were not
    provided at all, if there were other arguments: macro was not expanded
    in case only the non variadic arguments were given.
    
     #define MACRO(...)       used to work fine for 0 or more arguments.
     #define MACRO(ARG0, ...) used to work only for 2 or more arguments, now fixed.
    
    Change-Id: I64e9199ceccae05618a49931c2adad8e4f9471ba
    Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
    4d18710f