Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-06-16 20:47:57 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-16 20:47:57 +0400
commitf2a0062042edfafab2c0d9472f2669521ff70930 (patch)
tree661259338dadb701f6567d627061e81be41b35e5 /source/blender/python/intern/bpy_app_handlers.c
parenta6e290166b7565d5e70309d8e41fbc267321b551 (diff)
Use ARRAY_SIZE to replace (sizeof(a) / sizeof(*a))
Diffstat (limited to 'source/blender/python/intern/bpy_app_handlers.c')
-rw-r--r--source/blender/python/intern/bpy_app_handlers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_app_handlers.c b/source/blender/python/intern/bpy_app_handlers.c
index b3be5a819fb..0c13230c365 100644
--- a/source/blender/python/intern/bpy_app_handlers.c
+++ b/source/blender/python/intern/bpy_app_handlers.c
@@ -71,11 +71,11 @@ static PyStructSequence_Desc app_cb_info_desc = {
(char *)"bpy.app.handlers", /* name */
(char *)"This module contains callbacks", /* doc */
app_cb_info_fields, /* fields */
- (sizeof(app_cb_info_fields) / sizeof(PyStructSequence_Field)) - 1
+ ARRAY_SIZE(app_cb_info_fields) - 1
};
#if 0
-# if (BLI_CB_EVT_TOT != ((sizeof(app_cb_info_fields) / sizeof(PyStructSequence_Field))))
+# if (BLI_CB_EVT_TOT != ARRAY_SIZE(app_cb_info_fields))
# error "Callbacks are out of sync"
# endif
#endif