Coverage Report

Created: 2025-08-28 06:06

/src/adhd/cras/common/check.c
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright 2023 The ChromiumOS Authors
3
 * Use of this source code is governed by a BSD-style license that can be
4
 * found in the LICENSE file.
5
 */
6
7
#include "cras/common/check.h"
8
9
#include <stdio.h>
10
#include <stdlib.h>
11
12
__attribute__((__noreturn__)) void cras_assertion_failure(const char* assertion,
13
                                                          const char* filename,
14
                                                          unsigned line,
15
0
                                                          const char* func) {
16
0
  fprintf(stderr, "%s: %u: Assertion failed: '%s' in function: %s\n", filename,
17
0
          line, assertion, func);
18
0
  abort();
19
0
}