Files
ld58/code/core/macros.h

16 lines
342 B
C
Raw Normal View History

#if !defined(LD_CORE_MACROS_H_)
#define LD_CORE_MACROS_H_
#define ArraySize(x) (sizeof(x) / sizeof((x)[0]))
#define Min(a, b) ((a) < (b) ? (a) : (b))
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define _Glue(a, b) a##b
#define _Stringify(x) #x
#define Glue(a, b) _Glue(a, b)
#define Stringify(x) _Stringify(x)
#endif // LD_CORE_MACROS_H_