Miscellaneous macros
[Macros and data types commonly used]

Defines


Define Documentation

#define ABS (  )     (((x)<0) ? -(x) : (x))

A macro returns the absolute value of x.

Definition at line 1408 of file common.h.

#define MAX ( x,
 )     (((x) > (y))?(x):(y))

A macro returns the maximum of x and y.

Definition at line 1394 of file common.h.

#define MAX_NAME   NAME_MAX

The possible maximal length of a file name.

Note:
This definition is an alias of NAME_MAX

Definition at line 1440 of file common.h.

#define MAX_PATH   PATH_MAX

The possible maximal length of a path name.

Note:
This definition is an alias of PATH_MAX

Definition at line 1431 of file common.h.

#define MIN ( x,
 )     (((x) < (y))?(x):(y))

A macro returns the minimum of x and y.

Definition at line 1401 of file common.h.

#define TABLESIZE ( table   )     (sizeof(table)/sizeof(table[0]))

A macro returns the number of elements in a table.

Definition at line 1386 of file common.h.

Generated on Thu Apr 7 16:01:44 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3