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

    r461 r465  
    130130        compiler.codeGenerator.op_fstp_basereg( DEF_DOUBLE, REG_ESP );
    131131    }
    132     else SetError(9,NULL,cp);
     132    else compiler.errorMessenger.Output(9,NULL,cp);
    133133}
    134134void ChangeTypeToSingle(int OldType){
     
    198198        compiler.codeGenerator.op_fstp_basereg( DEF_SINGLE, REG_ESP );
    199199    }
    200     else SetError(9,NULL,cp);
     200    else compiler.errorMessenger.Output(9,NULL,cp);
    201201}
    202202
     
    254254        }
    255255    }
    256     else SetError(9,NULL,cp);
     256    else compiler.errorMessenger.Output(9,NULL,cp);
    257257}
    258258void ChangeTypeToLong(int OldType){
     
    393393    }
    394394    else{
    395         SetError(300,NULL,cp);
     395        compiler.errorMessenger.Output(300,NULL,cp);
    396396    }
    397397}
     
    411411            //ダブルクォートは不正なのでエラー扱い
    412412            variable[i]=0;
    413             SetError(3,variable,cp);
     413            compiler.errorMessenger.Output(3,variable,cp);
    414414            return;
    415415        }
     
    458458            if(GetVarType(variable,Type(),0)){
    459459                //変数リストに該当したとき
    460                 SetError(1,NULL,cp);
     460                compiler.errorMessenger.Output(1,NULL,cp);
    461461            }
    462462            else{
     
    465465                {
    466466                    //定数リストに該当したとき
    467                     SetError(1,NULL,cp);
     467                    compiler.errorMessenger.Output(1,NULL,cp);
    468468                }
    469469                else{
    470470                    //変数リスト、定数リストに該当しないとき
    471                     SetError(3,variable,cp);
     471                    compiler.errorMessenger.Output(3,variable,cp);
    472472                }
    473473            }
     
    491491
    492492    if(Command[i+1]=='\0'){
    493         SetError(1,NULL,cp);
     493        compiler.errorMessenger.Output(1,NULL,cp);
    494494        return;
    495495    }
     
    531531
    532532    if( lstrcmpi( variable, "This" ) == 0 ){
    533         SetError(133,NULL,cp);
     533        compiler.errorMessenger.Output(133,NULL,cp);
    534534        return;
    535535    }
     
    593593    if( !TermOpeOnlyVariable( variable, varType, VarRelativeVar, true ) )
    594594    {
    595         SetError();
     595        compiler.errorMessenger.OutputFatalError();
    596596        return;
    597597    }
    598598
    599599    if(varType.GetBasicType()&FLAG_PTR){
    600         SetError(14,variable,cp);
     600        compiler.errorMessenger.Output(14,variable,cp);
    601601        return;
    602602    }
     
    614614        compiler.GetObjectModule().meta.GetBlittableTypes().GetClass( calcType ).GetStaticMethods().Enum( "_Create", userProcs );
    615615        if( userProcs.size() != 1 ){
    616             SetError();
     616            compiler.errorMessenger.OutputFatalError();
    617617            return;
    618618        }
Note: See TracChangeset for help on using the changeset viewer.