|
Last change
on this file since 774ae8 was a0bcf1, checked in by Frederik Heber <heber@…>, 18 years ago |
|
-initial commit
-Minimum set of files needed from ESPACK SVN repository
-Switch to three tantamount package parts instead of all relating to pcp (as at some time Ralf's might find inclusion as well)
|
-
Property mode
set to
100644
|
|
File size:
1001 bytes
|
| Line | |
|---|
| 1 | #ifndef errors_h
|
|---|
| 2 | #define errors_h
|
|---|
| 3 |
|
|---|
| 4 | /** \file errors.h
|
|---|
| 5 | * Header file for \ref errors.c
|
|---|
| 6 | *
|
|---|
| 7 | * Contains declarations of the functions implemented in \ref errors.c and
|
|---|
| 8 | * the enumeration of the error class Errors.
|
|---|
| 9 | *
|
|---|
| 10 | Project: ParallelCarParrinello
|
|---|
| 11 | Jan Hamaekers
|
|---|
| 12 | 2000
|
|---|
| 13 |
|
|---|
| 14 | File: errors.h
|
|---|
| 15 | $Id: errors.h,v 1.7 2006/03/30 22:19:52 foo Exp $
|
|---|
| 16 | */
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 | /* Verschiedene Fehlertypen */
|
|---|
| 20 | enum Errors { SomeError, //!< some unclassified error
|
|---|
| 21 | FileOpenParams, //!< Error opening parameter file
|
|---|
| 22 | InitReading, //!< Error parsing parameter file
|
|---|
| 23 | MallocError //!< Error while allocating memory
|
|---|
| 24 | };
|
|---|
| 25 | /* SomeError: Falls man noch zu faul ist */
|
|---|
| 26 |
|
|---|
| 27 | /* Behandelt aufgetretene Fehler. error ist der Fehlertyp(enum Errors)
|
|---|
| 28 | void *SpecialData ist ein untypisierter Zeiger auf Spezielle Daten zur Fehlerbehandlung.
|
|---|
| 29 | Man koennte auch noch einen Zeiger auf eine Funktion uebergeben */
|
|---|
| 30 | void Error(enum Errors error, const void *SpecialData);
|
|---|
| 31 |
|
|---|
| 32 | #endif
|
|---|
| 33 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.