| 510 | } |
| 511 | |
| 512 | int Structure::getAlignOf() const { |
| 513 | if ( circularGuard ) return 1; |
| 514 | circularGuard = true; |
| 515 | int align = 1; |
| 516 | for ( const auto & fd : fields ) { |
| 517 | align = das::max ( fd.type->getAlignOf(), align ); |
| 518 | } |
| 519 | circularGuard = false; |
| 520 | return align; |
| 521 | } |
| 522 | |
| 523 | int Structure::getAlignOfFailed(bool & failed) const { |
| 524 | if ( circularGuard ) return 1; |
no outgoing calls