MySQL 8.4.0
Source Code Documentation
my_macros.h File Reference

Some common macros. More...

Go to the source code of this file.


#define IF_WIN(A, B)   B
#define QUOTE_ARG(x)   #x /* Quote argument (before cpp) */
#define STRINGIFY_ARG(x)   QUOTE_ARG(x) /* Quote argument, after cpp */
#define test_all_bits(a, b)   (((a) & (b)) == (b))

Detailed Description

Some common macros.

Note that some of these should probably be replaced with code from <algorithm> or similar.

Macro Definition Documentation


#define IF_WIN (   A,
)    B


#define QUOTE_ARG (   x)    #x /* Quote argument (before cpp) */


#define STRINGIFY_ARG (   x)    QUOTE_ARG(x) /* Quote argument, after cpp */

◆ test_all_bits

#define test_all_bits (   a,
)    (((a) & (b)) == (b))