| 2958 | } |
| 2959 | |
| 2960 | int TypeDecl::getVariantFieldOffset ( int index ) const { |
| 2961 | index; |
| 2962 | DAS_ASSERT(baseType==Type::tVariant); |
| 2963 | DAS_ASSERT(index>=0 && index<int(argTypes.size())); |
| 2964 | int al = getVariantAlign() - 1; |
| 2965 | int offset = (getTypeBaseSize(Type::tInt) + al) & ~al; |
| 2966 | return offset; |
| 2967 | } |
| 2968 | |
| 2969 | int TypeDecl::getVariantUniqueFieldIndex ( const TypeDeclPtr & uniqueType ) const { |
| 2970 | int index = -1; |