MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / getVariantAlignFailed

Method getVariantAlignFailed

src/ast/ast_typedecl.cpp:3026–3033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3024 }
3025
3026 int TypeDecl::getVariantAlignFailed(bool & failed) const {
3027 DAS_ASSERT(baseType==Type::tVariant);
3028 int align = getTypeBaseAlign(Type::tInt);
3029 for ( const auto & argT : argTypes ) {
3030 align = das::max ( argT->getAlignOfFailed(failed), align );
3031 }
3032 return align;
3033 }
3034
3035 int TypeDecl::getVectorFieldOffset ( int index ) const {
3036 DAS_ASSERT(index>=0 && index<=3);

Callers

nothing calls this directly

Calls 2

getTypeBaseAlignFunction · 0.85
getAlignOfFailedMethod · 0.45

Tested by

no test coverage detected