| 587 | } |
| 588 | |
| 589 | unsigned int GetAlignmentOffset(const char *pos, unsigned int alignment) |
| 590 | { |
| 591 | if(alignment > 16) |
| 592 | ThrowError(pos, "ERROR: alignment must be less than 16 bytes"); |
| 593 | // If alignment is set and address is not aligned |
| 594 | if(alignment != 0 && varTop % alignment != 0) |
| 595 | return alignment - (varTop % alignment); |
| 596 | return 0; |
| 597 | } |
| 598 | |
| 599 | void CheckForImmutable(TypeInfo* type, const char* pos) |
| 600 | { |
no test coverage detected