tblite
Light-weight tight-binding framework
Loading...
Searching...
No Matches
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
30#pragma once
31
32#include "tblite/macros.h"
33
35typedef struct _tblite_error* tblite_error;
36
40
44
48
52
56 char* /* buffer */,
57 const int* /* buffersize */);
58
62 char* /* buffer */,
63 const int* /* buffersize */);
TBLITE_API_ENTRY void TBLITE_API_CALL tblite_clear_error(tblite_error)
Clear error handle status.
TBLITE_API_ENTRY int TBLITE_API_CALL tblite_check_error(tblite_error)
Check error handle status.
struct _tblite_error * tblite_error
Error instance.
Definition error.h:35
TBLITE_API_ENTRY tblite_error TBLITE_API_CALL tblite_new_error(void)
Create new error handle object.
TBLITE_API_ENTRY void TBLITE_API_CALL tblite_delete_error(tblite_error *)
Delete an error handle object.
TBLITE_API_ENTRY void TBLITE_API_CALL tblite_set_error(tblite_error, char *, const int *)
Set error message to error handle.
TBLITE_API_ENTRY void TBLITE_API_CALL tblite_get_error(tblite_error, char *, const int *)
Get error message from error handle.
General macro definitions for the tblite C API bindings.
#define TBLITE_API_ENTRY
Definition macros.h:49
#define TBLITE_API_CALL
Definition macros.h:57