diff options
Diffstat (limited to 'contrib/llvm-project/compiler-rt/lib/interception/interception_win.h')
-rw-r--r-- | contrib/llvm-project/compiler-rt/lib/interception/interception_win.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/llvm-project/compiler-rt/lib/interception/interception_win.h b/contrib/llvm-project/compiler-rt/lib/interception/interception_win.h index 4590013019e3..f6eca82191cb 100644 --- a/contrib/llvm-project/compiler-rt/lib/interception/interception_win.h +++ b/contrib/llvm-project/compiler-rt/lib/interception/interception_win.h @@ -41,6 +41,11 @@ bool OverrideImportedFunction(const char *module_to_patch, const char *function_name, uptr new_function, uptr *orig_old_func); +// Sets a callback to be used for reporting errors by interception_win. The +// callback will be called with printf-like arguments. Intended to be used with +// __sanitizer::Report. Pass nullptr to disable error reporting (default). +void SetErrorReportCallback(void (*callback)(const char *format, ...)); + #if !SANITIZER_WINDOWS64 // Exposed for unittests bool OverrideFunctionWithDetour( |