91#ifndef INCLUDED_APP_HOOKS
92#define INCLUDED_APP_HOOKS
162#define AH_IS_DEFINED(name) app_hook_was_redefined(offsetof(AppHooks, name))
static AppHooks ah
Definition: app_hooks.cpp:63
void ah_bundle_logs(FILE *f)
gather all app-related logs/information and write it to file.
Definition: app_hooks.cpp:110
bool app_hook_was_redefined(size_t offset_in_struct)
was the app hook changed via app_hooks_update from its default value?
Definition: app_hooks.cpp:89
ErrorReactionInternal ah_display_error(const wchar_t *text, size_t flags)
display an error dialog, thus overriding sys_display_error.
Definition: app_hooks.cpp:115
void app_hooks_update(AppHooks *ah)
update the app hook function pointers.
Definition: app_hooks.cpp:78
const OsPath & ah_get_log_dir()
return path to directory into which crash dumps should be written.
Definition: app_hooks.cpp:105
ErrorReactionInternal
all choices offered by the error dialog.
Definition: debug.h:141
holds a function pointer (allowed to be NULL) for each hook.
Definition: app_hooks.h:139
ErrorReactionInternal(* display_error)(const wchar_t *text, size_t flags)
Definition: app_hooks.h:142
void(* bundle_logs)(FILE *f)
Definition: app_hooks.h:141