Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/stdhdr/assert.h

    r77125cc re3fea42  
    2727        #define assertf( expr, fmt, ... ) ((expr) ? ((void)0) : __assert_fail_f(__VSTRINGIFY__(expr), __FILE__, __LINE__, __PRETTY_FUNCTION__, fmt, ## __VA_ARGS__ ))
    2828
    29         void __assert_warn_f( const char assertion[], const char file[], unsigned int line, const char function[], const char fmt[], ... ) __attribute__((format( printf, 5, 6) ));
    3029        void __assert_fail_f( const char assertion[], const char file[], unsigned int line, const char function[], const char fmt[], ... ) __attribute__((noreturn, format( printf, 5, 6) ));
    3130#endif
    3231
    3332#if !defined(NDEBUG) && (defined(__CFA_DEBUG__) || defined(__CFA_VERIFY__))
    34         #define __CFA_WITH_VERIFY__
    3533        #define verify(x) assert(x)
    3634        #define verifyf(x, ...) assertf(x, __VA_ARGS__)
    37         #define verifyfail(...)
    38         #define warnf( expr, fmt, ... ) ({ static bool check_once##__LINE__ = false; if( false == check_once##__LINE__ && false == (expr)) { check_once##__LINE__ = true; __assert_warn_f(__VSTRINGIFY__(expr), __FILE__, __LINE__, __PRETTY_FUNCTION__, fmt, ## __VA_ARGS__ ); } })
     35        #define __CFA_WITH_VERIFY__
    3936#else
    4037        #define verify(x)
    4138        #define verifyf(x, ...)
    42         #define verifyfail(...)
    43         #define warnf( expr, fmt, ... )
    4439#endif
    4540
Note: See TracChangeset for help on using the changeset viewer.