Changeset 287 in dev for trunk/abdev/BasicCompiler_Common/src/Variable.cpp
- Timestamp:
- Aug 16, 2007, 7:55:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/Variable.cpp
r275 r287 74 74 } 75 75 76 void Variables::Add( Variable *pVar )76 void Variables::Add( Variable *pVar, bool isResetOffsetAddress ) 77 77 { 78 78 int alignment = 0; … … 90 90 } 91 91 92 pVar->SetOffsetAddress( allInitSize ); 92 if( isResetOffsetAddress ) 93 { 94 pVar->SetOffsetAddress( allInitSize ); 95 } 93 96 allInitSize += pVar->GetMemorySize(); 94 97 } … … 102 105 } 103 106 107 if( !isResetOffsetAddress ) 108 { 109 Jenga::Throw( "[Variables::Add] 初期バッファがない変数に対してisResetOffsetAddressをfalseにできない" ); 110 } 111 104 112 pVar->SetOffsetAddress( allSize | 0x80000000 ); 105 113 allSize += pVar->GetMemorySize();
Note:
See TracChangeset
for help on using the changeset viewer.