Changeset 122 in dev for BasicCompiler32/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
  • BasicCompiler32/NumOpe.cpp

    r117 r122  
    227227    return false;
    228228}
    229 bool TermOpe( const char *term, const Type &baseType, Type &resultType, bool &isLiteral, BOOL *pbUseHeap, bool *pIsClassName = NULL ){
     229bool TermOpe( const char *term, const Type &baseType, Type &resultType, bool &isLiteral, BOOL *pbUseHeap, bool *pIsClassName, bool isProcedureCallOnly ){
    230230    char parameter[VN_SIZE];
    231231
     
    293293
    294294
    295     if(lstrcmpi(termFull,"This")==0){
     295    if(lstrcmpi(termFull,"This")==0 && isProcedureCallOnly == false ){
    296296        //Thisオブジェクト
    297297        resultType.SetType( DEF_OBJECT, pobj_CompilingClass );
     
    387387            return true;
    388388        }
     389    }
     390    else if( isProcedureCallOnly ){
     391        // 関数呼び出し以外は受け付けない
     392        return false;
    389393    }
    390394
Note: See TracChangeset for help on using the changeset viewer.