tblite
Light-weight tight-binding framework
Toggle main menu visibility
Loading...
Searching...
No Matches
include
tblite
error.h
Go to the documentation of this file.
1
/* This file is part of tblite.
2
* SPDX-Identifier: LGPL-3.0-or-later
3
*
4
* tblite is free software: you can redistribute it and/or modify it under
5
* the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* tblite is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with tblite. If not, see <https://www.gnu.org/licenses/>.
16
**/
17
29
30
#pragma once
31
32
#include "
tblite/macros.h
"
33
35
typedef
struct
_tblite_error*
tblite_error
;
36
38
TBLITE_API_ENTRY
tblite_error
TBLITE_API_CALL
39
tblite_new_error
(
void
);
40
42
TBLITE_API_ENTRY
void
TBLITE_API_CALL
43
tblite_delete_error
(
tblite_error
*
/* error */
);
44
46
TBLITE_API_ENTRY
int
TBLITE_API_CALL
47
tblite_check_error
(
tblite_error
/* error */
);
48
50
TBLITE_API_ENTRY
void
TBLITE_API_CALL
51
tblite_clear_error
(
tblite_error
/* error */
);
52
54
TBLITE_API_ENTRY
void
TBLITE_API_CALL
55
tblite_get_error
(
tblite_error
/* error */
,
56
char
*
/* buffer */
,
57
const
int
*
/* buffersize */
);
58
60
TBLITE_API_ENTRY
void
TBLITE_API_CALL
61
tblite_set_error
(
tblite_error
/* error */
,
62
char
*
/* buffer */
,
63
const
int
*
/* buffersize */
);
tblite_clear_error
TBLITE_API_ENTRY void TBLITE_API_CALL tblite_clear_error(tblite_error)
Clear error handle status.
tblite_check_error
TBLITE_API_ENTRY int TBLITE_API_CALL tblite_check_error(tblite_error)
Check error handle status.
tblite_error
struct _tblite_error * tblite_error
Error instance.
Definition
error.h:35
tblite_new_error
TBLITE_API_ENTRY tblite_error TBLITE_API_CALL tblite_new_error(void)
Create new error handle object.
tblite_delete_error
TBLITE_API_ENTRY void TBLITE_API_CALL tblite_delete_error(tblite_error *)
Delete an error handle object.
tblite_set_error
TBLITE_API_ENTRY void TBLITE_API_CALL tblite_set_error(tblite_error, char *, const int *)
Set error message to error handle.
tblite_get_error
TBLITE_API_ENTRY void TBLITE_API_CALL tblite_get_error(tblite_error, char *, const int *)
Get error message from error handle.
macros.h
General macro definitions for the tblite C API bindings.
TBLITE_API_ENTRY
#define TBLITE_API_ENTRY
Definition
macros.h:49
TBLITE_API_CALL
#define TBLITE_API_CALL
Definition
macros.h:57
Generated by
1.17.0