Differences From Artifact [381e0e03ee]:
- Executable file mttroot/mtt/cc/include/useful-functions.hh — part of check-in [27de151df7] at 2002-05-29 18:40:43 on branch origin/master — Made file C compliant. (user: geraint@users.sourceforge.net, size: 1504) [annotate] [blame] [check-ins using] [more...]
To Artifact [1f4be0464d]:
- Executable file mttroot/mtt/cc/include/useful-functions.hh — part of check-in [53aac86d96] at 2002-06-10 23:20:14 on branch origin/master — Commented out definition of bool - problematic if declared elsewhere. (user: geraint@users.sourceforge.net, size: 1510) [annotate] [blame] [check-ins using] [more...]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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)
{
|
| ︙ |