mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 08:16:24 +01: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
@ -153,6 +153,14 @@ g_typelib_check_sanity (void)
|
||||
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 (DirEntry, 12);
|
||||
CHECK_SIZE (SimpleTypeBlob, 4);
|
||||
|
Loading…
Reference in New Issue
Block a user