STE-Industries: utilities testing
Common Macros

Definitions of commonly used macros. More...

Macros

#define IgnoreValue(Expression)   (static_cast<void>(Expression))
 
#define NumberOfElements(Array)   (sizeof(Array) / sizeof((Array) [0]))
 

Detailed Description

Definitions of commonly used macros.

Macro Definition Documentation

◆ IgnoreValue

#define IgnoreValue (   Expression)    (static_cast<void>(Expression))

#include <Desktop/Termite/Include/Graphic.h>

Ignore the value of an expression, casting it to void.
Mostly useful for function calls.

Parameters
ExpressionThe expression

Definition at line 55 of file Graphic.h.

◆ NumberOfElements

#define NumberOfElements (   Array)    (sizeof(Array) / sizeof((Array) [0]))

#include <Desktop/Termite/Include/Graphic.h>

Computes the number of elements in a statically allocated array.

Parameters
ArrayThe array name

Definition at line 65 of file Graphic.h.