ezEngine  Milestone 7
PreprocessorUtils.h File Reference

Go to the source code of this file.

Macros

#define EZ_CONCAT(x, y)   EZ_CONCAT_HELPER(x,y)
 Concatenates two strings, even when the strings are macros themselves.
 
#define EZ_CONCAT_HELPER(x, y)   EZ_CONCAT_HELPER2(x,y)
 
#define EZ_CONCAT_HELPER2(x, y)   x##y
 
#define EZ_STRINGIZE(str)   EZ_STRINGIZE_HELPER(str)
 Turns some piece of code (usually some identifier name) into a string. Even works on macros.
 
#define EZ_STRINGIZE_HELPER(x)   #x
 
#define EZ_COMPILE_TIME_MAX(a, b)   ((a) > (b) ? (a) : (b))
 Max value of two compile-time constant expression.
 
#define EZ_COMPILE_TIME_MIN(a, b)   ((a) < (b) ? (a) : (b))
 Min value of two compile-time constant expression.
 
#define EZ_BIT(n)   (1ull << (n))
 Creates a bit mask with only the n-th Bit set. Useful when creating enum values for flags.