Red screen?
Initalised vulkan for rendering bar some validation errors Added core types, platform detection and util macros
This commit is contained in:
15
code/core/macros.h
Normal file
15
code/core/macros.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#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_
|
||||
Reference in New Issue
Block a user