Overview
Comment: | Commented out definition of bool - problematic if declared elsewhere. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
997ad24a1ad46197cc0c54466ea7cfb0 |
User & Date: | geraint@users.sourceforge.net on 2002-06-10 23:20:14 |
Other Links: | branch diff | manifest | tags |
Context
2002-06-10
| ||
23:22:16 | Fixed problem with Matlab fsolve failing because of "user function returned Inf or Nan" (fsolve.m, line 245). check-in: ff8ee3f10c user: geraint@users.sourceforge.net tags: origin/master, trunk | |
23:20:14 | Commented out definition of bool - problematic if declared elsewhere. check-in: 997ad24a1a user: geraint@users.sourceforge.net tags: origin/master, trunk | |
23:18:44 | Adjusted cr.h comment delimiters to be C compliant. check-in: 96ec7a1a1c user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/cc/include/useful-functions.hh from [381e0e03ee] to [1f4be0464d].
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) { |
︙ | ︙ |