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: 53aac86d967b72f13e5556c54e143bb26b4f589e183df21025c55d29a5d7a78c
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: 718f8cde73 user: geraint@users.sourceforge.net tags: origin/master, trunk
23:20:14
Commented out definition of bool - problematic if declared elsewhere. check-in: 53aac86d96 user: geraint@users.sourceforge.net tags: origin/master, trunk
23:18:44
Adjusted cr.h comment delimiters to be C compliant. check-in: e24b2700be 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)
{


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]