Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/ErrorObjects.h

    r610354a r9d1e3f7  
    4646        std::list< error > errors;
    4747};
     48
     49void SemanticWarningImpl( CodeLocation location, std::string error );
     50
     51template< typename T >
     52static inline void SemanticWarningImpl( const T * obj, const std::string & error ) {
     53        SemanticWarning( obj->location, toString( error, obj ) );
     54}
     55
     56template< typename T >
     57static inline void SemanticWarningImpl( CodeLocation location, const T * obj, const std::string & error ) {
     58        SemanticWarningImpl( location, toString( error, obj ) );
     59}
Note: See TracChangeset for help on using the changeset viewer.