Ignore:
Timestamp:
Oct 14, 2007, 9:41:03 PM (17 years ago)
Author:
dai_9181
Message:

インターフェイスを実装

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/src/Type.cpp

    r335 r350  
    211211    if( IsObject() )
    212212    {
    213         if( GetClass().IsInterface() ){
    214             // vtblOffsetのサイズを含める
    215             return PTR_SIZE*2;
    216         }
    217213        return PTR_SIZE;
    218214    }
     
    298294bool Type::IsPointer( int basicType )
    299295{
     296    if( basicType == DEF_NON )
     297    {
     298        return false;
     299    }
     300
    300301    if(PTR_LEVEL( basicType )|| basicType == DEF_PTR_VOID || basicType == DEF_PTR_PROC
    301302        || ( basicType & FLAG_PTR ) ){
     
    448449    return ( IsObject() && GetClass().IsDelegate() );
    449450}
     451bool Type::IsInterface() const
     452{
     453    return ( IsObject() && GetClass().IsInterface() );
     454}
     455
    450456
    451457bool Type::HasMember() const
Note: See TracChangeset for help on using the changeset viewer.