Changeset 122 in dev for BasicCompiler64/NumOpe.cpp


Ignore:
Timestamp:
May 13, 2007, 1:50:02 PM (17 years ago)
Author:
dai_9181
Message:

(呼び出し単体コードも対応→)関数の戻り値オブジェクトのメンバ・メソッドを一時オブジェクトを介さずに参照できるようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler64/NumOpe.cpp

    r117 r122  
    224224    return false;
    225225}
    226 bool TermOpe( const char *term, const Type &baseType, Type &resultType, bool &isLiteral, BOOL *pbUseHeap, bool *pIsClassName = NULL ){
     226bool TermOpe( const char *term, const Type &baseType, Type &resultType, bool &isLiteral, BOOL *pbUseHeap, bool *pIsClassName, bool isProcedureCallOnly ){
    227227    char parameter[VN_SIZE];
    228228
     
    290290
    291291
    292     if(lstrcmpi(termFull,"This")==0){
     292    if(lstrcmpi(termFull,"This")==0 && isProcedureCallOnly == false ){
    293293        //Thisオブジェクト
    294294        resultType.SetType( DEF_OBJECT, pobj_CompilingClass );
     
    386386            return true;
    387387        }
     388    }
     389    else if( isProcedureCallOnly ){
     390        // 関数呼び出し以外は受け付けない
     391        return false;
    388392    }
    389393
     
    775779                    //////////////////
    776780                    // 何らかの識別子
    777 
    778     if( (string)term=="ParentArea.NamespaceEnumTest.x"){
    779         int test=0;
    780     }
    781781
    782782                    bool isLiteral;
Note: See TracChangeset for help on using the changeset viewer.