MiniGUI API Reference (MiniGUI-Standalone)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros

Macros

#define TABLESIZE(table)   (sizeof(table)/sizeof(table[0]))
 A macro returns the number of elements in a table. More...
 
#define MAX(x, y)   (((x) > (y))?(x):(y))
 A macro returns the maximum of x and y. More...
 
#define MIN(x, y)   (((x) < (y))?(x):(y))
 A macro returns the minimum of x and y. More...
 
#define ABS(x)   (((x)<0) ? -(x) : (x))
 A macro returns the absolute value of x. More...
 
#define MAX_PATH   PATH_MAX
 The possible maximal length of a path name. More...
 
#define MAX_NAME   NAME_MAX
 The possible maximal length of a file name. More...
 

Detailed Description

Macro Definition Documentation

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

A macro returns the absolute value of x.

Definition at line 1679 of file common.h.

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

A macro returns the maximum of x and y.

Definition at line 1665 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 1711 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 1702 of file common.h.

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

A macro returns the minimum of x and y.

Definition at line 1672 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 1657 of file common.h.