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/BasicCompiler32/Compile_CallProc.cpp

    r461 r465  
    135135                    }
    136136                    else{
    137                         SetError(300,NULL,cp);
     137                        compiler.errorMessenger.Output(300,NULL,cp);
    138138                    }
    139139                }
     
    163163            pMethod = pobj_c->GetStaticMethods().GetMethodPtr( pUserProc );
    164164            if( !pMethod ){
    165                 SetError(300,NULL,cp);
     165                compiler.errorMessenger.Output(300,NULL,cp);
    166166                return false;
    167167            }
     
    181181                //同一クラスオブジェクトの場合はプライベートアクセスを容認する
    182182                if( pMethod->IsNoneAccess() ){
    183                     SetError(109,pUserProc->GetName(),cp);
     183                    compiler.errorMessenger.Output(109,pUserProc->GetName(),cp);
    184184                    return false;
    185185                }
     
    188188                if( pMethod->IsPrivate()
    189189                    || pMethod->IsNoneAccess() ){
    190                     SetError(109,pUserProc->GetName(),cp);
     190                    compiler.errorMessenger.Output(109,pUserProc->GetName(),cp);
    191191                    return false;
    192192                }
    193193                if( !pMethod->GetUserProc().GetParentClass().IsEqualsOrSubClass( pobj_c ) && pMethod->IsProtected() ){
    194                     SetError(110,pUserProc->GetName(),cp);
     194                    compiler.errorMessenger.Output(110,pUserProc->GetName(),cp);
    195195                    return false;
    196196                }
     
    200200            //クラス内部からの呼び出し(継承によるACCESS_NONのみをエラーとする)
    201201            if( pMethod->IsNoneAccess() ){
    202                 SetError(109,pUserProc->GetName(),cp);
     202                compiler.errorMessenger.Output(109,pUserProc->GetName(),cp);
    203203                return false;
    204204            }
     
    296296                if( !resultType.IsObject() )
    297297                {
    298                     SetError();
     298                    compiler.errorMessenger.OutputFatalError();
    299299                }
    300300
     
    344344            if( vtblMasterListIndex != 0 )
    345345            {
    346                 SetError();
     346                compiler.errorMessenger.OutputFatalError();
    347347            }
    348348        }
Note: See TracChangeset for help on using the changeset viewer.