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

Method getVariantAlign

src/ast/ast_typedecl.cpp:3017–3024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3015 }
3016
3017 int TypeDecl::getVariantAlign() const {
3018 DAS_ASSERT(baseType==Type::tVariant);
3019 int align = getTypeBaseAlign(Type::tInt);
3020 for ( const auto & argT : argTypes ) {
3021 align = das::max ( argT->getAlignOf(), align );
3022 }
3023 return align;
3024 }
3025
3026 int TypeDecl::getVariantAlignFailed(bool & failed) const {
3027 DAS_ASSERT(baseType==Type::tVariant);

Callers 1

describeCppTypeExFunction · 0.80

Calls 2

getTypeBaseAlignFunction · 0.85
getAlignOfMethod · 0.45

Tested by

no test coverage detected