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_C-api.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_C-api.h')
-rw-r--r-- | intern/ghost/GHOST_C-api.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index ad19efadba5..388d6eb96d2 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -907,6 +907,11 @@ extern int GHOST_UseNativePixels(void); extern int GHOST_SupportsCursorWarp(void); /** + * Assign the callback which generates a back-trace (may be NULL). + */ +extern void GHOST_SetBacktraceHandler(GHOST_TBacktraceFn backtrace_fn); + +/** * Focus window after opening, or put them in the background. */ extern void GHOST_UseWindowFocus(int use_focus); |