Yet another ALIGN idea. (some
Ray Butterworth
rbutterworth at watmath.UUCP
Fri Jul 11 22:34:23 AEST 1986
> Since an alignment constant doesn't necessarily work, how about an
> alignmentof(object) operator, analagous to sizeof()? At least that'll work
> on all architectures that have alignments based on multiples.
An "alignof(type)" operator is already required by X3J11 (although
they don't seem to have realized this yet) in order to implement
their va_arg(ap,type) macro.
More information about the Comp.lang.c
mailing list