diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-04 08:26:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-04 08:29:05 +0300 |
commit | f3c5b0394f095bb017c19c5a945c8e7714205bf2 (patch) | |
tree | 7d137f466a762e013216381ccf747951ded466c2 /source/blender/blenkernel/BKE_idprop.h | |
parent | 16253285ff66039b2e861422e96a102e3118205a (diff) |
IDProp API: expose repr utility function
Useful for logging properties passed to operators.
Diffstat (limited to 'source/blender/blenkernel/BKE_idprop.h')
-rw-r--r-- | source/blender/blenkernel/BKE_idprop.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_idprop.h b/source/blender/blenkernel/BKE_idprop.h index 5d8cd02756d..48a5db93504 100644 --- a/source/blender/blenkernel/BKE_idprop.h +++ b/source/blender/blenkernel/BKE_idprop.h @@ -145,9 +145,8 @@ void IDP_RelinkProperty(struct IDProperty *prop); # define IDP_Id(prop) ((ID *) (prop)->data.pointer) #endif -#ifndef NDEBUG -/* for printout only */ -void IDP_spit(IDProperty *prop); -#endif +/* for printout/logging only */ +char *IDP_reprN(const struct IDProperty *prop); +void IDP_print(const struct IDProperty *prop); #endif /* __BKE_IDPROP_H__ */ |