OpenMPI 0.1.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

vt_error.h
1 /**
2 * VampirTrace
3 * http://www.tu-dresden.de/zih/vampirtrace
4 *
5 * Copyright (c) 2005-2012, ZIH, TU Dresden, Federal Republic of Germany
6 *
7 * Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
8 * Centre, Federal Republic of Germany
9 *
10 * See the file COPYING in the package base directory for details
11 **/
12
13 #ifndef _VT_ERROR_H
14 #define _VT_ERROR_H
15
16 #ifdef __cplusplus
17 # define EXTERN extern "C"
18 #else
19 # define EXTERN extern
20 #endif
21
22 #include <stdarg.h>
23
24 /* set process id/rank for messages */
25 EXTERN void vt_error_pid(const int pid);
26
27 /* abort if assertion is false */
28 #define vt_libassert(expr) if(!(expr)) vt_libassert_fail(__FILE__, __LINE__, #expr)
29 EXTERN void vt_libassert_fail(const char* f, int l, const char* expr);
30
31 /* abort and system error message */
32 #define vt_error() vt_error_impl(__FILE__, __LINE__)
33 EXTERN void vt_error_impl(const char* f, int l);
34
35 /* abort and user error message */
36 EXTERN void vt_error_msg(const char* fmt, ...);
37
38 /* user warning message without abort */
39 EXTERN void vt_warning(const char* fmt, ...);
40
41 /* user control message without abort (printed only if VT_VERBOSE is set) */
42 EXTERN void vt_cntl_msg(int level, const char* fmt, ...);
43
44 /* debug messages without abort (printed only if VT_DEBUG is set) */
45 EXTERN void vt_debug_msg(int level, const char* fmt, ...);
46
47 #endif
48
49
50
51
52
53