• Alessandro Rubini's avatar
    assert.h: parameter passing fix · 2b4d8424
    Alessandro Rubini authored
    See gcc info pages: "Macros with a Variable Number of Arguments."
    The ISO-C stadanrd doesn't allow varargs macros to get zero or more
    arguments. So this fixes the problem using the gcc extension.
    
    A standard-compliant alternative would be to have "fmt" included in
    the variadic part, like this:
    
      #define assert(cond, ...) \
            if (CONFIG_HAS_ASSERT && !(cond)) \
                    __assert(__func__, __LINE__, 1 /* forever */, __VA_ARGS__)
    
    But the reader wouldn't  now it's a fmt+args.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    2b4d8424
Name
Last commit
Last update
..
assert.h Loading commit data...
constants.h Loading commit data...
diag-macros.h Loading commit data...
ieee1588_types.h Loading commit data...
jiffies.h Loading commit data...
lib.h Loading commit data...
pp-instance.h Loading commit data...
pp-time.h Loading commit data...
ppsi.h Loading commit data...