From 94f0d18470fc454b456f711c9d040a7fef6780fb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 18 Nov 2014 00:20:56 +0100 Subject: BLI_assert: print a backtrace with the error Add BLI_system_backtrace() --- source/blender/blenlib/BLI_system.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/blender/blenlib/BLI_system.h') 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 @@ -35,4 +39,3 @@ int BLI_cpu_support_sse2(void); #endif #endif /* __BLI_SYSTEM_H__ */ - -- cgit v1.2.3