Cleanup: BLI_utildefines struct macros

Use the term "AFTER" instead of "OFS" since it wasn't obvious these
macros operate on everything after the struct member passed.

Avoid casting to non-const types when only reading.
This commit is contained in:
2019-03-12 16:59:04 +11:00
parent d8daeeb930
commit 873f8b13ec
21 changed files with 36 additions and 36 deletions

View File

@@ -54,7 +54,7 @@
void BKE_camera_init(Camera *cam)
{
BLI_assert(MEMCMP_STRUCT_OFS_IS_ZERO(cam, id));
BLI_assert(MEMCMP_STRUCT_AFTER_IS_ZERO(cam, id));
cam->lens = 50.0f;
cam->sensor_x = DEFAULT_SENSOR_WIDTH;