Grok
12.0.1
src
lib
core
highway
hwy
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
8
namespace
hwy
{
9
10
// Interface for custom abort handler
11
typedef
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
16
AbortFunc
&
GetAbortFunc
();
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
22
AbortFunc
SetAbortFunc
(
AbortFunc
func);
23
24
}
// namespace hwy
25
26
#endif
// HIGHWAY_HWY_ABORT_H_
hwy
Definition
abort.h:8
hwy::SetAbortFunc
AbortFunc SetAbortFunc(AbortFunc func)
hwy::GetAbortFunc
AbortFunc & GetAbortFunc()
hwy::AbortFunc
void(* AbortFunc)(const char *file, int line, const char *formatted_err)
Definition
abort.h:11
hwy::line
HWY_DLLEXPORT HWY_NORETURN void int line
Definition
base.h:231
Generated by
1.10.0