1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef HAVE_USEFUL_FUNCTIONS_HH
#define HAVE_USEFUL_FUNCTIONS_HH
#ifndef __cplusplus
#define inline /* strip */
#define cast_to_double (double)
typedef unsigned int bool;
const bool true = 1;
const bool false = 0;
#else
#define cast_to_double static_cast<double>
#endif /* ! __cplusplus */
static inline double
max (const double x1, const double x2)
{
|
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef HAVE_USEFUL_FUNCTIONS_HH
#define HAVE_USEFUL_FUNCTIONS_HH
#ifndef __cplusplus
#define inline /* strip */
#define cast_to_double (double)
/*
typedef unsigned int bool;
const bool true = 1;
const bool false = 0;
*/
#else
#define cast_to_double static_cast<double>
#endif /* ! __cplusplus */
static inline double
max (const double x1, const double x2)
{
|