mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-03 04:09:20 +02:00
gmacros: Add G_ALIGNOF superseding _g_alignof macro
This commit is contained in:
14
glib/docs.c
14
glib/docs.c
@@ -1865,7 +1865,19 @@
|
||||
* macro will not work on an array allocated on the heap, only static
|
||||
* arrays or arrays on the stack.
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* G_ALIGNOF
|
||||
* @a: a type-name
|
||||
*
|
||||
* Return the minimum alignment required by the platform ABI for values of the given
|
||||
* type. The address of a variable or struct member of the given type must always be
|
||||
* a multiple of this alignment. For example, most platforms require int variables
|
||||
* to be aligned at a 4-byte boundary, so `G_ALIGNOF (int)` is 4 on most platforms.
|
||||
*
|
||||
* Since: 2.60
|
||||
*/
|
||||
|
||||
/* Miscellaneous Macros {{{1 */
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user