MiniGUI API Reference (MiniGUI-Standalone)  v5.0.6
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

◆ ABS

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

A macro returns the absolute value of x.

Definition at line 1981 of file common.h.

◆ MAX

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

A macro returns the maximum of x and y.

Definition at line 1967 of file common.h.

◆ MAX_NAME

#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 2013 of file common.h.

◆ MAX_PATH

#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 2004 of file common.h.

◆ MIN

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

A macro returns the minimum of x and y.

Definition at line 1974 of file common.h.

◆ TABLESIZE

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

A macro returns the number of elements in a table.

Definition at line 1959 of file common.h.