Next: , Previous: Library reference, Up: System details


7.2 Predefined types

7.2.1 Variables types

Marsyas contains some predefined, portable data types:

     mrs_bool
     mrs_natural   (integers)
     mrs_real
     mrs_complex

The use of these variable types instead of normal C++ like int and double is strongly recommended.

Warning: a number like ‘100’ is interpreted as a mrs_natural. If you want to pass this value to a mrs_real, you must specify ‘100.0’.

7.2.2 Constants

A number of useful constants, such as PI and TWOPI (at double precision instead of float) are defined in marsyas/common.h.