mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-03 04:26:52 +02:00
Add a comment about keeping hardcoded numbers in g_typelib_check_sanity
svn path=/trunk/; revision=945
This commit is contained in:
parent
05d5158001
commit
d4d832bf9a
@ -152,6 +152,14 @@ g_typelib_check_sanity (void)
|
|||||||
n, sizeof (s)); \
|
n, sizeof (s)); \
|
||||||
size_check_ok = FALSE; \
|
size_check_ok = FALSE; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* When changing the size of a typelib structure, you are required to update
|
||||||
|
* the hardcoded size here. Do NOT change these to use sizeof(); these
|
||||||
|
* should match whatever is defined in the text specification and serve as
|
||||||
|
* a sanity check on structure modifications.
|
||||||
|
*
|
||||||
|
* Everything else in the code however should be using sizeof().
|
||||||
|
*/
|
||||||
|
|
||||||
CHECK_SIZE (Header, 108);
|
CHECK_SIZE (Header, 108);
|
||||||
CHECK_SIZE (DirEntry, 12);
|
CHECK_SIZE (DirEntry, 12);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user