Changeset 51 in dev for BasicCompiler32/CParameter.cpp
- Timestamp:
- Feb 10, 2007, 8:30:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler32/CParameter.cpp
r50 r51 109 109 110 110 //call destructor 111 int i5 = types[i2].u.pobj_Class->DestructorMemberSubIndex;112 if( i5 != -1){113 op_call( types[i2].u.pobj_Class->ppobj_Method[i5]->psi );111 CMethod *method = types[i2].u.pobj_Class->GetDestructorMethod(); 112 if( method ){ 113 op_call( method->psi ); 114 114 } 115 115 … … 148 148 CalcType.type=NumOpe_GetType(Parameter,&BaseType,&CalcType.u.lpIndex); 149 149 150 if( pobj_Class->CopyConstructorMemberSubIndex!=-1&&151 CalcType.type==DEF_OBJECT&&CalcType.u.pobj_Class==pobj_Class){150 if( pobj_Class->GetCopyConstructorMethod() 151 && CalcType.type==DEF_OBJECT&&CalcType.u.pobj_Class==pobj_Class){ 152 152 //////////////////////////////////// 153 153 // コピーコンストラクタを呼び出す … … 179 179 180 180 //call constructor 181 op_call(pobj_Class-> ppobj_Method[pobj_Class->CopyConstructorMemberSubIndex]->psi);181 op_call(pobj_Class->GetCopyConstructorMethod()->psi); 182 182 183 183 … … 191 191 192 192 193 if( pobj_Class->ConstructorMemberSubIndex!=-1){193 if( pobj_Class->GetConstructorMethod() ){ 194 194 //////////////////////////////// 195 195 // コンストラクタを呼び出す … … 200 200 201 201 //call constructor 202 op_call(pobj_Class-> ppobj_Method[pobj_Class->ConstructorMemberSubIndex]->psi);202 op_call(pobj_Class->GetConstructorMethod()->psi); 203 203 } 204 204
Note:
See TracChangeset
for help on using the changeset viewer.