Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-11-18 02:20:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2014-11-18 02:20:56 +0300
commit94f0d18470fc454b456f711c9d040a7fef6780fb (patch)
tree77c3a62ac3f906a1517370351056e2fa4ebb598f /source/blender/blenlib/BLI_system.h
parent1e5d5085675afd1c3d6e0191e668449217f733ed (diff)
BLI_assert: print a backtrace with the error
Add BLI_system_backtrace()
Diffstat (limited to 'source/blender/blenlib/BLI_system.h')
-rw-r--r--source/blender/blenlib/BLI_system.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_system.h b/source/blender/blenlib/BLI_system.h
index 8cdc9e4e6c5..bc81b85303d 100644
--- a/source/blender/blenlib/BLI_system.h
+++ b/source/blender/blenlib/BLI_system.h
@@ -27,6 +27,10 @@
int BLI_cpu_support_sse2(void);
+#if !defined(NDEBUG) && !defined(__BLI_UTILDEFINES_H__)
+void BLI_system_backtrace(FILE *fp);
+#endif
+
/* getpid */
#ifdef WIN32
# define BLI_SYSTEM_PID_H <process.h>
@@ -35,4 +39,3 @@ int BLI_cpu_support_sse2(void);
#endif
#endif /* __BLI_SYSTEM_H__ */
-