diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-30 06:03:30 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-30 08:04:20 +0400 |
commit | a6e8137983d74ebff785ee134f635e1a08f58237 (patch) | |
tree | 6526fc6a6be6aa964d0df416922881d7421f8839 /source/blender/blenlib/BLI_math_vector.h | |
parent | cc439f683b2b1603e94e9d27f420692b17b79f41 (diff) |
Convenience macro for print_ funcs, saves passing id each time
Diffstat (limited to 'source/blender/blenlib/BLI_math_vector.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_vector.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_vector.h b/source/blender/blenlib/BLI_math_vector.h index 9b73ca553d6..e6e46a4d8cd 100644 --- a/source/blender/blenlib/BLI_math_vector.h +++ b/source/blender/blenlib/BLI_math_vector.h @@ -266,6 +266,11 @@ void print_v3(const char *str, const float a[3]); void print_v4(const char *str, const float a[4]); void print_vn(const char *str, const float v[], const int n); +#define print_v2_id(v) print_v2(STRINGIFY(v), v) +#define print_v3_id(v) print_v3(STRINGIFY(v), v) +#define print_v4_id(v) print_v4(STRINGIFY(v), v) +#define print_vn_id(v, n) print_vn(STRINGIFY(v), v, n) + MINLINE void normal_short_to_float_v3(float r[3], const short n[3]); MINLINE void normal_float_to_short_v3(short r[3], const float n[3]); |