Changeset 27 in dev for BasicCompiler_Common/Class.cpp


Ignore:
Timestamp:
Jan 7, 2007, 6:51:20 AM (17 years ago)
Author:
dai_9181
Message:

静的メンバ、静的メソッド周りを修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/Class.cpp

    r18 r27  
    308308    return ppobj_StaticMethod[i];
    309309}
     310bool CClass::IsExistMethod( char *name ){
     311    for( int i=0; i<iMethodNum; i++ ){
     312        if( lstrcmp( ppobj_Method[i]->psi->name, name ) == 0 ) return true;
     313    }
     314    return false;
     315}
     316bool CClass::IsExistStaticMethod( char *name ){
     317    for( int i=0; i<iStaticMethodNum; i++ ){
     318        if( lstrcmp( ppobj_StaticMethod[i]->psi->name, name ) == 0 ) return true;
     319    }
     320    return false;
     321}
     322
    310323
    311324LONG_PTR CClass::AddVtblDataTable(SUBINFO **ppsi,int length){
     
    677690    //メンバ関数
    678691    for(i=0;i<pobj_c->iMethodNum;i++){
    679         //スーパークラスと重複する場合はオーバーライドを行う
     692        //基底クラスと重複する場合はオーバーライドを行う
    680693        if(pobj_c->ppobj_Method[i]->pobj_InheritsClass) continue;
    681694
Note: See TracChangeset for help on using the changeset viewer.