Fix compile error with MSVC2013 - Can't use __func__ (from BLI_assert) in inlined...
authorJoshua Leung <aligorith@gmail.com>
Tue, 20 Mar 2018 03:03:43 +0000 (16:03 +1300)
committerJoshua Leung <aligorith@gmail.com>
Tue, 20 Mar 2018 03:03:43 +0000 (16:03 +1300)
ERROR: blenlib/intern/math_base_inline.c:371 - '__func__' : undeclared identifier (C:\blenderdev\master2\blender\source\blender\editors\lattice\editlattice_tools.c)  [C2065]

source/blender/blenlib/intern/math_base_inline.c

index eed06c7..1f51747 100644 (file)
@@ -368,8 +368,10 @@ MINLINE int compare_ff_relative(float a, float b, const float max_diff, const in
 {
        union {float f; int i;} ua, ub;
 
+#if 0  /* No BLI_assert in INLINE :/ */
        BLI_assert(sizeof(float) == sizeof(int));
        BLI_assert(max_ulps < (1 << 22));
+#endif
 
        if (fabsf(a - b) <= max_diff) {
                return 1;