mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-05 22:10:04 +02:00
Added hasUnalignedFields helper to check if a type has unaligned fields - as per request from fvbommel. Result is cached in TypeStruct.
This commit is contained in:
@@ -628,6 +628,11 @@ struct TypeStruct : Type
|
||||
#endif
|
||||
|
||||
type *toCtype();
|
||||
|
||||
// LDC
|
||||
// cache the hasUnalignedFields check
|
||||
// 0 = not checked, 1 = aligned, 2 = unaligned
|
||||
int unaligned;
|
||||
};
|
||||
|
||||
struct TypeEnum : Type
|
||||
|
||||
Reference in New Issue
Block a user