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

    r461 r465  
    263263                    || type.IsObjectPtr() && referenceKind == RefPointer ) )
    264264                {
    265                     SetError(104,ObjectName,cp);
     265                    compiler.errorMessenger.Output(104,ObjectName,cp);
    266266                }
    267267
     
    305305            if( vtblMasterListIndex != 0 )
    306306            {
    307                 SetError();
     307                compiler.errorMessenger.OutputFatalError();
    308308            }
    309309        }
     
    400400        {
    401401            extern int cp;
    402             SetError(1,NULL,cp);
     402            compiler.errorMessenger.Output(1,NULL,cp);
    403403            return;
    404404        }
     
    460460        GetOverloadSubHash( name, subs );
    461461        if( subs.size() == 0 ){
    462             SetError(27,name,cp);
     462            compiler.errorMessenger.Output(27,name,cp);
    463463            return;
    464464        }
     
    480480                    ) )
    481481                {
    482                     SetError(67, name, cp );
     482                    compiler.errorMessenger.Output(67, name, cp );
    483483                }
    484484            }
     
    491491                    ) )
    492492                {
    493                     SetError(66, name, cp );
     493                    compiler.errorMessenger.Output(66, name, cp );
    494494                }
    495495            }
     
    497497
    498498        if(!pUserProc){
    499             SetError(27,name,cp);
     499            compiler.errorMessenger.Output(27,name,cp);
    500500            return;
    501501        }
     
    504504        pUserProc=GetSubHash(name);
    505505        if(!pUserProc){
    506             SetError(27,name,cp);
     506            compiler.errorMessenger.Output(27,name,cp);
    507507            return;
    508508        }
     
    531531    Type tempType;
    532532    if( !compiler.StringToType( typeName, tempType ) ){
    533         SetError(3,typeName,cp);
     533        compiler.errorMessenger.Output(3,typeName,cp);
    534534        return;
    535535    }
     
    597597    }
    598598    else{
    599         SetError(134,NULL,cp );
     599        compiler.errorMessenger.Output(134,NULL,cp );
    600600    }
    601601}
     
    680680    }
    681681    if(!tempType.IsWhole()){
    682         SetError(11,Parameter,cp);
     682        compiler.errorMessenger.Output(11,Parameter,cp);
    683683        return;
    684684    }
Note: See TracChangeset for help on using the changeset viewer.