~eda-qa/leaflang/master

« back to all changes in this revision

Viewing changes to include/lang/common.hpp

  • Committer: edA-qa mort-ora-y
  • Date: 2018-03-22 16:10:07 UTC
  • mfrom: (112.2.9 sdl)
  • Revision ID: eda-qa@disemia.com-20180322161007-smfaf63fi8b1f96f
merging sdl

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
#define CHECK_THROW_LOC( ctx_, stmt_, loc_, cond_, reason_, ... )       \
73
73
        if( !(cond_) ) { (ctx_).mark_failed(*(stmt_)).error( *(loc_), (reason_), \
74
 
                { LOGGER_COND(#cond_) }, { __VA_ARGS__ } ); \
 
74
                { __VA_ARGS__ }, LOGGER_COND(#cond_) ); \
75
75
                return (stmt_); }
76
76
                
77
77
#define CHECK_THROW( ctx_, loc_, cond_, reason_, ... )  \
78
78
        if( !(cond_) ) { (ctx_).mark_failed().error( *(loc_), (reason_), \
79
 
                { LOGGER_COND(#cond_) }, { __VA_ARGS__ } ); \
 
79
                { __VA_ARGS__ }, LOGGER_COND(#cond_) ); \
80
80
                BOOST_THROW_EXCEPTION( user_error() ); }
81
81
 
82
82
#define CHECK_CERR_THROW( ctx_, loc_, cerr_, ... )      \
83
83
        if( !(cerr_).okay() ) { (ctx_).mark_failed().error( *(loc_), (cerr_).error_reason(), \
84
 
                { LOGGER_COND(#cerr_ ".okay()"), util::logger::item_cerr_extra( (cerr_).error_extra ) }, { __VA_ARGS__ } ); \
 
84
                { __VA_ARGS__ }, LOGGER_COND(#cerr_ ".okay()"), (cerr_).error_item  ); \
85
85
                BOOST_THROW_EXCEPTION( user_error() ); }
86
86
                
87
87
} //eon leaf