Ignore:
Timestamp:
Dec 14, 2023, 1:55:18 PM (7 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
21ad568
Parents:
3e49c477
Message:

first attempt at simplifying SemanticWarning?, inline SemanticError? routine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/ErrorObjects.h

    r3e49c477 r610354a  
    4646        std::list< error > errors;
    4747};
    48 
    49 void SemanticWarningImpl( CodeLocation location, std::string error );
    50 
    51 template< typename T >
    52 static inline void SemanticWarningImpl( const T * obj, const std::string & error ) {
    53         SemanticWarning( obj->location, toString( error, obj ) );
    54 }
    55 
    56 template< typename T >
    57 static 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.