Changeset 90 in dev for BasicCompiler32/Compile_Object.cpp


Ignore:
Timestamp:
Apr 7, 2007, 3:02:29 PM (17 years ago)
Author:
dai_9181
Message:

実行時型情報の生成にほぼ対応した。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler32/Compile_Object.cpp

    r75 r90  
    4848        PROCFLAG_NEW,"",0);
    4949
     50    {
     51        // 動的型情報をセットする
     52        // obj._System_SetType( _System_TypeBase.Search( strNamespace, name ) )
     53        subs.clear();
     54        pobj_c->EnumMethod( "_System_SetType", subs );
     55        if( subs.size() == 1 ){
     56            char temporary[VN_SIZE];
     57            sprintf( temporary, "_System_TypeBase.Search(\"\",\"%s\"))", pobj_c->name );
     58
     59            Opcode_CallProc(temporary,
     60                subs[0],
     61                PROCFLAG_NEW,"",0);
     62        }
     63        else{
     64            SetError();
     65        }
     66    }
     67
    5068
    5169
Note: See TracChangeset for help on using the changeset viewer.