diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-04-13 13:21:21 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-04-13 13:21:32 +0300 |
commit | 8a97d462961d3f4be96303ab5eb59c0e5a00ba7c (patch) | |
tree | a4921c6dc039fe7326fd9a0d660d0a55c033adb5 /source/blender/blenlib/intern | |
parent | 97ae0f22cd5709e4a1af532d594012426c2b364e (diff) |
Windows:
Only print backtrace on debug builds, since on release builds there is
only some useless output from a python library and fftw.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/system.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenlib/intern/system.c b/source/blender/blenlib/intern/system.c index b6b0f14a4e2..18703a83621 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 |