aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/util/hdr_abort.h
blob: 48d65b37e177cdac3c6af28605521d2831ef3020 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

namespace vespalib {

[[noreturn]] extern void
hdr_abort(const char *message,
          const char *file,
          unsigned int line);

#define HDR_ABORT(msg) \
  (vespalib::hdr_abort(msg, __FILE__, __LINE__))

} // namespace vespalib