/src/brunsli/c/common/platform.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Copyright (c) Google LLC 2019 |
2 | | // |
3 | | // Use of this source code is governed by an MIT-style |
4 | | // license that can be found in the LICENSE file or at |
5 | | // https://opensource.org/licenses/MIT. |
6 | | |
7 | | #include "./platform.h" |
8 | | |
9 | | #include <cstdio> |
10 | | #include <cstdlib> // for abort |
11 | | |
12 | | namespace brunsli { |
13 | | |
14 | 0 | void BrunsliDumpAndAbort(const char* f, int l, const char* fn) { |
15 | 0 | fprintf(stderr, "%s:%d (%s)\n", f, l, fn); |
16 | 0 | fflush(stderr); |
17 | 0 | abort(); |
18 | 0 | } |
19 | | |
20 | | } // namespace brunsli |