Ignore:
Timestamp:
May 5, 2008, 2:23:49 AM (16 years ago)
Author:
dai_9181
Message:

BasicSource::DirectiveIncludeOrRequire内で発生したエラーのエラー出力を呼び出し元で行うようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Source.cpp

    r554 r555  
    621621            else continue;
    622622
     623            if( !Jenga::Common::Path( temporary ).IsExistFile() )
     624            {
     625                this->cannotIncludePath = temporary;
     626                this->cannotIncludeSourcePos = i;
     627                includedFilesRelation.AddLine( FileLayer[layer] );
     628                break;
     629            }
     630
    623631            if( i == 0 && Jenga::Common::Path(temporary).GetFileName() == "basic" )
    624632            {
     
    655663
    656664                //インクルードファイルを読み込む
    657                 if( !source.ReadFile_InIncludeDirective( temporary ) ){
    658                     sprintf(temp2,"インクルードファイル \"%s\" をオープンできません",temporary);
    659                     compiler.errorMessenger.Output(-1,temp2,i);
    660                     break;
     665                if( !source.ReadFile_InIncludeDirective( temporary ) )
     666                {
     667                    throw;
    661668                }
    662669            }
Note: See TracChangeset for help on using the changeset viewer.