Changeset 72b518fc


Ignore:
Timestamp:
Oct 9, 2023, 1:01:17 PM (14 months ago)
Author:
caparsons <caparson@…>
Branches:
master
Children:
ee9ad40
Parents:
26dfce5
Message:

added error message for using corun statements without including the appropriate header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Corun.cpp

    r26dfce5 r72b518fc  
    4242
    4343    Stmt * postvisit( const CorunStmt * stmt ) {
    44         assert( runnerBlockDecl );
     44        if ( !runnerBlockDecl )
     45            SemanticError( stmt->location, "To use corun statements add #include <cofor.hfa>\n" );
     46
    4547        if ( !stmt->stmt )
    4648            return nullptr;
Note: See TracChangeset for help on using the changeset viewer.