接上一篇:C语言内存对齐详解(2)
在minix的stdarg.h文件中,定义了如下一个宏:
/* Amount of space required in an argument list for an arg of type TYPE. * TYPE may alternatively be an expression whose type is used. */#define __va_rounded_size(TYPE) \ (((sizeof (TYPE) + sizeof (int) – 1) / sizeof (int)) * sizeof (int)),你在无垠的海边第一次听到了自己心跳的声音,