diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-13 18:42:31 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-13 18:42:31 +0300 |
commit | f02e04f1338a84ed1a02734854c83244b9fd0002 (patch) | |
tree | e8e9a7c9b8ca96ef4272978086422bbb6cbe4a28 /source/blender/blenkernel/BKE_library.h | |
parent | 6becdf5d001bdad59b2d191d2ebff5f5da115014 (diff) |
Add utility function to get size of given ID type
Optionally it'll also give name used for memory allocation.
Diffstat (limited to 'source/blender/blenkernel/BKE_library.h')
-rw-r--r-- | source/blender/blenkernel/BKE_library.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_library.h b/source/blender/blenkernel/BKE_library.h index 6649cfbb585..e74f33d9260 100644 --- a/source/blender/blenkernel/BKE_library.h +++ b/source/blender/blenkernel/BKE_library.h @@ -50,6 +50,7 @@ struct bContext; struct PointerRNA; struct PropertyRNA; +size_t BKE_libblock_get_alloc_info(short type, const char **name); void *BKE_libblock_alloc_notest(short type); void *BKE_libblock_alloc(struct Main *bmain, short type, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); void BKE_libblock_init_empty(struct ID *id); |