ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
error.h
Go to the documentation of this file.
1/* ============================================================================
2 Copyright (c) 2011-2022, Institute for Microelectronics,
3 Institute for Analysis and Scientific Computing,
4 TU Wien.
5
6 -----------------
7 ViennaSHE - The Vienna Spherical Harmonics Expansion Boltzmann Solver
8 -----------------
9
10 http://viennashe.sourceforge.net/
11
12 License: MIT (X11), see file LICENSE in the base directory
13=============================================================================== */
14
16
17#ifndef LIBVIENNASHE_ERROR_H
18#define LIBVIENNASHE_ERROR_H
19
20#ifdef __cplusplus
21extern "C"
22{
23#endif
24
25typedef int viennasheErrorCode;
29
30#define LIBVIENNASHE_CHKERR(x) if((x)) return viennashe_error((x));
31#define LIBVIENNASHE_NO_ERROR 0
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif /* LIBVIENNASHE_ERROR_H */
38
VIENNASHE_EXPORT viennasheErrorCode viennashe_error(viennasheErrorCode ecode)
Error code interpretation function.
int viennasheErrorCode
Definition: error.h:25
#define VIENNASHE_EXPORT
Definition: sys.h:19