Grok 12.0.1
abort.h
Go to the documentation of this file.
1// Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
2// SPDX-License-Identifier: Apache-2.0
3// SPDX-License-Identifier: BSD-3-Clause
4
5#ifndef HIGHWAY_HWY_ABORT_H_
6#define HIGHWAY_HWY_ABORT_H_
7
8namespace hwy {
9
10// Interface for custom abort handler
11typedef void (*AbortFunc)(const char* file, int line,
12 const char* formatted_err);
13
14// Retrieve current abort handler
15// Returns null if no abort handler registered, indicating Highway should print and abort
17
18// Sets a new abort handler and returns the previous abort handler
19// If this handler does not do the aborting itself Highway will use its own abort mechanism
20// which allows this to be used to customize the handling of the error itself.
21// Returns null if no previous abort handler registered
23
24} // namespace hwy
25
26#endif // HIGHWAY_HWY_ABORT_H_
Definition abort.h:8
AbortFunc SetAbortFunc(AbortFunc func)
AbortFunc & GetAbortFunc()
void(* AbortFunc)(const char *file, int line, const char *formatted_err)
Definition abort.h:11
HWY_DLLEXPORT HWY_NORETURN void int line
Definition base.h:231