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_Object.cpp

    r391 r465  
    2222
    2323    if(bSomeObjects){
    24         SetError();
     24        compiler.errorMessenger.OutputFatalError();
    2525
    2626        //push ebx
     
    6464        }
    6565        else{
    66             SetError();
     66            compiler.errorMessenger.OutputFatalError();
    6767        }
    6868
     
    110110    if(pClass->IsAbstract()){
    111111        //抽象クラスだったとき
    112         SetError(125,pClass->GetName(),cp);
     112        compiler.errorMessenger.Output(125,pClass->GetName(),cp);
    113113    }
    114114
     
    119119        Type tempType;
    120120        NumOpe(objectSizeStr,Type(),tempType);
    121         if( !tempType.IsWhole() ) SetError(49,NULL,cp);
     121        if( !tempType.IsWhole() ) compiler.errorMessenger.Output(49,NULL,cp);
    122122        ChangeTypeToLong(tempType.GetBasicType());
    123123
     
    269269        return;
    270270    }
    271     if(!( tempType.IsObjectPtr() || tempType.IsVoidPtr() )) SetError(122,NULL,cp);
     271    if(!( tempType.IsObjectPtr() || tempType.IsVoidPtr() )) compiler.errorMessenger.Output(122,NULL,cp);
    272272
    273273    //pop eax
Note: See TracChangeset for help on using the changeset viewer.