Coverage Report

Created: 2026-01-17 06:12

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/aspell/lib/can_have_error-c.cpp
Line
Count
Source
1
/* Automatically generated file.  Do not edit directly. */
2
3
/* This file is part of The New Aspell
4
 * Copyright (C) 2001-2002 by Kevin Atkinson under the GNU LGPL
5
 * license version 2.0 or 2.1.  You should have received a copy of the
6
 * LGPL license along with this library if you did not you can find it
7
 * at http://www.gnu.org/.                                              */
8
9
#include "can_have_error.hpp"
10
#include "error.hpp"
11
12
namespace acommon {
13
14
class CanHaveError;
15
struct Error;
16
17
extern "C" unsigned int aspell_error_number(const CanHaveError * ths)
18
1.15k
{
19
1.15k
  return ths->err_ == 0 ? 0 : 1;
20
1.15k
}
21
22
extern "C" const char * aspell_error_message(const CanHaveError * ths)
23
0
{
24
0
  return ths->err_ ? ths->err_->mesg : "";
25
0
}
26
27
extern "C" const Error * aspell_error(const CanHaveError * ths)
28
981
{
29
981
  return ths->err_;
30
981
}
31
32
extern "C" void delete_aspell_can_have_error(CanHaveError * ths)
33
175
{
34
175
  delete ths;
35
175
}
36
37
38
39
}
40