Ignore:
Timestamp:
Mar 24, 2008, 8:05:20 PM (16 years ago)
Author:
dai_9181
Message:

Messenger/ErrorMessengerクラスを導入。SetError関数によるエラー生成を廃止した。

File:
1 edited

Legend:

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

    r424 r465  
    4444                    if( buffer[i] == '\0' )
    4545                    {
    46                         SetError();
     46                        compiler.errorMessenger.OutputFatalError();
    4747                        break;
    4848                    }
     
    236236                if( pUserProc ){
    237237                    if( isEnabledReturnType ){
    238                         SetError(52,name,cp);
     238                        compiler.errorMessenger.Output(52,name,cp);
    239239                        return NULL;
    240240                    }
     
    267267                if( pUserProc )
    268268                {
    269                     SetError(52,name,cp);
     269                    compiler.errorMessenger.Output(52,name,cp);
    270270                    return NULL;
    271271                }
     
    278278    if( !pUserProc )
    279279    {
    280         SetError();
     280        compiler.errorMessenger.OutputFatalError();
    281281    }
    282282
     
    318318        if( params.size() == 0 || params[params.size()-1]->GetBasicType()!=DEF_ELLIPSE ){
    319319            //パラメータが多すぎるとき
    320             SetError(10,procName,cp);
     320            compiler.errorMessenger.Output(10,procName,cp);
    321321            return false;
    322322        }
     
    329329
    330330            //パラメータが少なすぎるとき
    331             SetError(10,procName,cp);
     331            compiler.errorMessenger.Output(10,procName,cp);
    332332            return false;
    333333        }
Note: See TracChangeset for help on using the changeset viewer.