mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Introduce clang-format (#240)
This commit is contained in:
committed by
GitHub
parent
e928fc9425
commit
b449da1fa3
@@ -2,7 +2,11 @@
|
||||
#define DECOMP_H
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define DECOMP_STATIC_ASSERT(V) namespace { typedef int foo[(V)?1:-1]; }
|
||||
#define DECOMP_STATIC_ASSERT(V) \
|
||||
namespace \
|
||||
{ \
|
||||
typedef int foo[(V) ? 1 : -1]; \
|
||||
}
|
||||
#define DECOMP_SIZE_ASSERT(T, S) DECOMP_STATIC_ASSERT(sizeof(T) == S)
|
||||
#else
|
||||
#define DECOMP_STATIC_ASSERT(V)
|
||||
|
||||
Reference in New Issue
Block a user