diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-10 08:13:25 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-10 11:36:10 +0300 |
commit | 2601b9832dc34ff0346bf3c810d6babc2ca22630 (patch) | |
tree | 4afe0890a25289cd3b18574271445aa4ab05a80b /intern/ghost/GHOST_ISystem.h | |
parent | eb9fa052a173355475be3d91395ec24fb2b0f865 (diff) |
GHOST: add back-trace handler to the API
Add a back-trace handler to GHOST, so error handlers can include a
back-trace (when supported).
No functional changes.
Diffstat (limited to 'intern/ghost/GHOST_ISystem.h')
-rw-r--r-- | intern/ghost/GHOST_ISystem.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_ISystem.h b/intern/ghost/GHOST_ISystem.h index 8a4412403f7..436ff7a723e 100644 --- a/intern/ghost/GHOST_ISystem.h +++ b/intern/ghost/GHOST_ISystem.h @@ -133,6 +133,9 @@ class GHOST_ISystem { */ static GHOST_ISystem *getSystem(); + static GHOST_TBacktraceFn getBacktraceFn(); + static void setBacktraceFn(GHOST_TBacktraceFn backtrace_fn); + protected: /** * Constructor. @@ -482,6 +485,9 @@ class GHOST_ISystem { /** The one and only system */ static GHOST_ISystem *m_system; + /** Function to call that sets the back-trace. */ + static GHOST_TBacktraceFn m_backtrace_fn; + #ifdef WITH_CXX_GUARDEDALLOC MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_ISystem") #endif |