Ignore:
Timestamp:
Aug 16, 2007, 7:55:02 PM (17 years ago)
Author:
dai_9181
Message:

Binaryクラスを追加

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/src/Variable.cpp

    r275 r287  
    7474}
    7575
    76 void Variables::Add( Variable *pVar )
     76void Variables::Add( Variable *pVar, bool isResetOffsetAddress )
    7777{
    7878    int alignment = 0;
     
    9090        }
    9191
    92         pVar->SetOffsetAddress( allInitSize );
     92        if( isResetOffsetAddress )
     93        {
     94            pVar->SetOffsetAddress( allInitSize );
     95        }
    9396        allInitSize += pVar->GetMemorySize();
    9497    }
     
    102105        }
    103106
     107        if( !isResetOffsetAddress )
     108        {
     109            Jenga::Throw( "[Variables::Add] 初期バッファがない変数に対してisResetOffsetAddressをfalseにできない" );
     110        }
     111
    104112        pVar->SetOffsetAddress( allSize | 0x80000000 );
    105113        allSize += pVar->GetMemorySize();
Note: See TracChangeset for help on using the changeset viewer.