Commit: 8a97d462961d3f4be96303ab5eb59c0e5a00ba7c
Author: Antony Riakiotakis
Date:   Mon Apr 13 12:21:21 2015 +0200
Branches: master
https://developer.blender.org/rB8a97d462961d3f4be96303ab5eb59c0e5a00ba7c

Windows:

Only print backtrace on debug builds, since on release builds there is
only some useless output from a python library and fftw.

===================================================================

M       source/blender/blenlib/intern/system.c

===================================================================

diff --git a/source/blender/blenlib/intern/system.c 
b/source/blender/blenlib/intern/system.c
index b6b0f14..18703a8 100644
--- a/source/blender/blenlib/intern/system.c
+++ b/source/blender/blenlib/intern/system.c
@@ -99,8 +99,7 @@ void BLI_system_backtrace(FILE *fp)
        /* Windows  */
 #elif defined(_MSC_VER)
 
-       (void)fp;
-#if defined WIN32
+#ifndef NDEBUG
 #define MAXSYMBOL 256
 #define SIZE 100
        unsigned short i;
@@ -127,11 +126,12 @@ void BLI_system_backtrace(FILE *fp)
        MEM_freeN(symbolinfo);
 #undef MAXSYMBOL
 #undef SIZE
-#endif
-
+#else
+       fprintf(fp, "Not supported on release builds\n");
+#endif /* NDEBUG */
+#else /* _MSC_VER */
        /* ------------------ */
        /* non msvc/osx/linux */
-#else
        (void)fp;
 #endif

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to