Changeset 549 in dev for trunk


Ignore:
Timestamp:
May 4, 2008, 10:42:47 PM (17 years ago)
Author:
dai_9181
Message:

OutputFatalErrorをやめて_ASSERTに変更。

File:
1 edited

Legend:

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

    r537 r549  
    77const ::DllProc &Schedule::GetDllProc() const
    88{
    9     if( type != Schedule::DllProc )
    10     {
    11         compiler.errorMessenger.OutputFatalError();
    12     }
     9    _ASSERT( type == Schedule::DllProc );
    1310    return *pDllProc;
    1411}
    1512const ::UserProc &Schedule::GetUserProc() const
    1613{
    17     if( !( type == Schedule::UserProc || type == Schedule::AddressOf || type == Schedule::CatchAddress ) )
    18     {
    19         compiler.errorMessenger.OutputFatalError();
    20     }
     14    _ASSERT( type == Schedule::UserProc || type == Schedule::AddressOf || type == Schedule::CatchAddress );
    2115    return *pUserProc;
    2216}
    2317const ::CClass &Schedule::GetClass() const
    2418{
    25     if( !( type == Schedule::ComVtbl || type == Schedule::Vtbl || type == Schedule::TypeInfo ) )
    26     {
    27         compiler.errorMessenger.OutputFatalError();
    28     }
     19    _ASSERT( type == Schedule::ComVtbl || type == Schedule::Vtbl || type == Schedule::TypeInfo );
    2920    return *pClass;
    3021}
     
    3223void Schedule::SpecifyAddressOf()
    3324{
    34     if( type != Schedule::UserProc )
    35     {
    36         compiler.errorMessenger.OutputFatalError();
    37     }
     25    _ASSERT( type == Schedule::UserProc );
    3826    type = Schedule::AddressOf;
    3927}
    4028void Schedule::SpecifyCatchAddress()
    4129{
    42     if( type != Schedule::UserProc )
    43     {
    44         compiler.errorMessenger.OutputFatalError();
    45     }
     30    _ASSERT( type == Schedule::UserProc );
    4631    type = Schedule::CatchAddress;
    4732}
Note: See TracChangeset for help on using the changeset viewer.