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 <campbell@blender.org>2022-06-10 08:13:25 +0300
committerCampbell Barton <campbell@blender.org>2022-06-10 11:36:10 +0300
commit2601b9832dc34ff0346bf3c810d6babc2ca22630 (patch)
tree4afe0890a25289cd3b18574271445aa4ab05a80b /intern/ghost/GHOST_C-api.h
parenteb9fa052a173355475be3d91395ec24fb2b0f865 (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.h5
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);