ESTER
Evolution STEllaire en Rotation
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Friends
Macros
Pages
src
include
utils.h
Go to the documentation of this file.
1
#ifndef ESTER_UTILS_H
2
#define ESTER_UTILS_H
3
4
#include <stdio.h>
5
6
#ifdef DEBUG
7
#define ester_err(...) do { \
8
fprintf(stderr, "Error at %s:%d: ", __FILE__, __LINE__); \
9
fprintf(stderr, __VA_ARGS__); \
10
fprintf(stderr, "\n"); \
11
} while(0)
12
#else
13
#define ester_err(...) do { \
14
fprintf(stderr, "Error: "); \
15
fprintf(stderr, __VA_ARGS__); \
16
fprintf(stderr, "\n"); \
17
} while(0)
18
#endif
19
20
#ifdef DEBUG
21
#define ester_warn(...) do { \
22
fprintf(stderr, "Warning at %s:%d: ", __FILE__, __LINE__); \
23
fprintf(stderr, __VA_ARGS__); \
24
fprintf(stderr, "\n"); \
25
} while(0)
26
#else
27
#define ester_warn(...) do { \
28
fprintf(stderr, "Warning: "); \
29
fprintf(stderr, __VA_ARGS__); \
30
fprintf(stderr, "\n"); \
31
} while(0)
32
#endif
33
34
#ifdef DEBUG
35
#define ester_debug(...) do { \
36
fprintf(stderr, __VA_ARGS__); \
37
} while (0)
38
#else
39
#define ester_debug(...) do {} while (0)
40
#endif
41
42
bool
isHDF5Name
(
const
char
*fileName);
43
44
#endif // ESTER_UTILS_H
isHDF5Name
bool isHDF5Name(const char *fileName)
Definition:
iofile.cpp:275
Generated on Thu Jul 9 2015 15:08:05 for ESTER by
1.8.6