MySQL 9.1.0
Source Code Documentation
my_macros.h File Reference

Some common macros. More...

Go to the source code of this file.

Macros

#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

◆ IF_WIN

#define IF_WIN (   A,
 
)    B

◆ QUOTE_ARG

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

◆ STRINGIFY_ARG

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

◆ test_all_bits

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