Changeset 335 in dev
- Timestamp:
- Sep 28, 2007, 3:27:35 AM (17 years ago)
- Location:
- trunk/abdev
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler32/Compile_Func.cpp
r334 r335 296 296 userProc.Using(); 297 297 } 298 void Opcode_Create SimpleDelegate( const CClass &dgClass, const char *methodInstanceName, const UserProc &userProc )298 void Opcode_CreateDelegate( const CClass &dgClass, const char *methodInstanceName, const UserProc &userProc ) 299 299 { 300 300 ///////////////////////////////////////////////////////////////// … … 401 401 { 402 402 // デリゲートのとき 403 Opcode_Create SimpleDelegate( baseType.GetClass(), name, *pUserProc );403 Opcode_CreateDelegate( baseType.GetClass(), name, *pUserProc ); 404 404 } 405 405 resultType = baseType; -
trunk/abdev/BasicCompiler_Common/src/Delegate.cpp
r327 r335 188 188 destSource += sourceTemplate.GetResult( values ); 189 189 } 190 /* 191 ofstream ofs( ( Jenga::Common::Environment::GetAppDir() + "\\generated_delegate_code.log" ).c_str() ); 192 ofs << destSource; 193 ofs.close(); 194 */ 190 195 } -
trunk/abdev/BasicCompiler_Common/src/Type.cpp
r332 r335 512 512 if( pUserProc ) 513 513 { 514 // 基底クラスでの自己解決 515 const CClass *pClass = &classType.GetClass(); 516 while( pClass->HasSuperClass() ) 514 if( classType.IsObject() ) 517 515 { 518 if( pUserProc->GetParentClassPtr() == &pClass->GetSuperClass() ) 516 // 基底クラスでの自己解決 517 const CClass *pClass = &classType.GetClass(); 518 while( pClass->HasSuperClass() ) 519 519 { 520 if( p Class->GetSuperClassActualTypeParameters().size() )520 if( pUserProc->GetParentClassPtr() == &pClass->GetSuperClass() ) 521 521 { 522 // TODO: 適切な形に実装し直す(暫定的にトップの型を持ってきている) 523 typeParameter = pClass->GetSuperClassActualTypeParameters()[0]; 522 if( pClass->GetSuperClassActualTypeParameters().size() ) 523 { 524 // TODO: 適切な形に実装し直す(暫定的にトップの型を持ってきている) 525 typeParameter = pClass->GetSuperClassActualTypeParameters()[0]; 526 } 524 527 } 528 pClass = &pClass->GetSuperClass(); 525 529 } 526 pClass = &pClass->GetSuperClass();527 530 } 528 531 }
Note:
See TracChangeset
for help on using the changeset viewer.