mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
docs: Soft-deprecate G_STRUCT_OFFSET in favour of offsetof
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
662661a8d0
commit
8e752b2733
@ -1829,7 +1829,12 @@
|
|||||||
*
|
*
|
||||||
* Returns the offset, in bytes, of a member of a struct.
|
* Returns the offset, in bytes, of a member of a struct.
|
||||||
*
|
*
|
||||||
* Returns: the offset of @member from the start of @struct_type
|
* Consider using standard C `offsetof()`, available since at least C89
|
||||||
|
* and C++98, in new code (but note that `offsetof()` returns a `size_t`
|
||||||
|
* rather than a `long`).
|
||||||
|
*
|
||||||
|
* Returns: the offset of @member from the start of @struct_type,
|
||||||
|
* as a value of type #glong.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user