Changeset 41d3c8d for src/Concurrency


Ignore:
Timestamp:
Mar 21, 2022, 12:14:07 PM (2 years ago)
Author:
caparsons <caparson@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
98d1b90, b39e961b
Parents:
0d4f954
Message:

added check for mutex stmt header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/KeywordsNew.cpp

    r0d4f954 r41d3c8d  
    10041004
    10051005const ast::Stmt * MutexKeyword::postvisit( const ast::MutexStmt * stmt ) {
     1006        if ( !lock_guard_decl ) {
     1007                SemanticError( stmt->location, "mutex stmt requires a header, add #include <mutex_stmt.hfa>\n" );
     1008        }
    10061009        ast::CompoundStmt * body =
    10071010                        new ast::CompoundStmt( stmt->location, { stmt->stmt } );
Note: See TracChangeset for help on using the changeset viewer.