diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-16 20:47:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-16 20:47:57 +0400 |
commit | f2a0062042edfafab2c0d9472f2669521ff70930 (patch) | |
tree | 661259338dadb701f6567d627061e81be41b35e5 /source/blender/python/intern/bpy_app_handlers.c | |
parent | a6e290166b7565d5e70309d8e41fbc267321b551 (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.c | 4 |
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 |