Changeset 51 in dev for BasicCompiler64/CParameter.cpp
- Timestamp:
- Feb 10, 2007, 8:30:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/CParameter.cpp
r50 r51 96 96 97 97 //call destructor 98 int i5 = types[i2].u.pobj_Class->DestructorMemberSubIndex;99 if( i5 != -1){100 op_call( types[i2].u.pobj_Class->ppobj_Method[i5]->psi );98 CMethod *method = types[i2].u.pobj_Class->GetDestructorMethod(); 99 if( method ){ 100 op_call( method->psi ); 101 101 } 102 102 … … 138 138 CalcType.type=NumOpe_GetType(Parameter,&BaseType,&CalcType.u.lpIndex); 139 139 140 if( pobj_Class->CopyConstructorMemberSubIndex!=-1&&141 CalcType.type==DEF_OBJECT&&CalcType.u.pobj_Class==pobj_Class){140 if( pobj_Class->GetCopyConstructorMethod() 141 && CalcType.type==DEF_OBJECT&&CalcType.u.pobj_Class==pobj_Class){ 142 142 //////////////////////////////////// 143 143 // コピーコンストラクタを呼び出す … … 160 160 161 161 //call constructor 162 op_call(pobj_Class-> ppobj_Method[pobj_Class->CopyConstructorMemberSubIndex]->psi);162 op_call(pobj_Class->GetCopyConstructorMethod()->psi); 163 163 164 164 … … 168 168 } 169 169 else{ 170 if( pobj_Class->ConstructorMemberSubIndex!=-1){170 if( pobj_Class->GetConstructorMethod() ){ 171 171 //////////////////////////////// 172 172 // コンストラクタを呼び出す … … 177 177 178 178 //call constructor 179 op_call(pobj_Class-> ppobj_Method[pobj_Class->ConstructorMemberSubIndex]->psi);179 op_call(pobj_Class->GetConstructorMethod()->psi); 180 180 } 181 181
Note:
See TracChangeset
for help on using the changeset viewer.