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_matrix.h | |
parent | cc439f683b2b1603e94e9d27f420692b17b79f41 (diff) |
Convenience macro for print_ funcs, saves passing id each time
Diffstat (limited to 'source/blender/blenlib/BLI_math_matrix.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_matrix.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_matrix.h b/source/blender/blenlib/BLI_math_matrix.h index e59c557b327..e3d9e40d272 100644 --- a/source/blender/blenlib/BLI_math_matrix.h +++ b/source/blender/blenlib/BLI_math_matrix.h @@ -215,6 +215,9 @@ bool is_zero_m4(float mat[4][4]); void print_m3(const char *str, float M[3][3]); void print_m4(const char *str, float M[3][4]); +#define print_m3_id(M) print_m3(STRINGIFY(M), M) +#define print_m4_id(M) print_m4(STRINGIFY(M), M) + #ifdef __cplusplus } #endif |