Utilities
Utilities — Assorted macros and functions
|
|
Description
Collection of macros and functions that do not fit inside any other topic.
Details
CPML_GNUC_CONST
#define CPML_GNUC_CONST __attribute__((__const__))
To be appended at the end of a function to notice the compiler (gcc)
that the return value is constant.
The coded is an adaptation of the G_GNUC_CONST macro defined by
glib-2.18.3 in glib/gmacros.h
.
Since 1.0
cpml_angle ()
double cpml_angle (double angle
);
Normalizes angle
, that is returns the equivalent radians value
between the range M_PI
(inclusive) and -M_PI
(exclusive).
angle :
|
an angle in radians |
Returns : |
an equivalent value in radians |
Since 1.0