From f3c5b0394f095bb017c19c5a945c8e7714205bf2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 4 May 2018 07:26:42 +0200 Subject: IDProp API: expose repr utility function Useful for logging properties passed to operators. --- source/blender/blenkernel/BKE_idprop.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source/blender/blenkernel/BKE_idprop.h') 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__ */ -- cgit v1.2.3