mirror of
https://github.com/javalsai/lidm.git
synced 2025-07-04 23:08:42 +02:00
style: indent preprocessor directives
This commit is contained in:
parent
19a1355b06
commit
3fb74ece44
@ -6,3 +6,6 @@ AllowShortIfStatementsOnASingleLine: WithoutElse
|
|||||||
AlignAfterOpenBracket: Align
|
AlignAfterOpenBracket: Align
|
||||||
BinPackParameters: true
|
BinPackParameters: true
|
||||||
AllowAllParametersOfDeclarationOnNextLine: true
|
AllowAllParametersOfDeclarationOnNextLine: true
|
||||||
|
|
||||||
|
IndentPPDirectives: BeforeHash
|
||||||
|
IndentGotoLabels: true
|
||||||
|
@ -3,31 +3,31 @@
|
|||||||
|
|
||||||
// Do we just replace the compiler with clang??
|
// Do we just replace the compiler with clang??
|
||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
#define NULLABLE _Nullable
|
#define NULLABLE _Nullable
|
||||||
#else
|
#else
|
||||||
#define NULLABLE
|
#define NULLABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
#define NNULLABLE _Nonnull
|
#define NNULLABLE _Nonnull
|
||||||
#else
|
#else
|
||||||
#define NNULLABLE
|
#define NNULLABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
#define UNULLABLE _Null_unspecified
|
#define UNULLABLE _Null_unspecified
|
||||||
#else
|
#else
|
||||||
#define UNULLABLE
|
#define UNULLABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__clang__)
|
#if defined(__clang__)
|
||||||
#define COMPILER_VERSION __VERSION__
|
#define COMPILER_VERSION __VERSION__
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
#define xstr(s) str(s)
|
#define xstr(s) str(s)
|
||||||
#define str(s) #s
|
#define str(s) #s
|
||||||
|
|
||||||
#define COMPILER_VERSION \
|
#define COMPILER_VERSION \
|
||||||
"GCC " xstr(__GNUC__) "." xstr(__GNUC_MINOR__) "." xstr(__GNUC_PATCHLEVEL__)
|
"GCC " xstr(__GNUC__) "." xstr(__GNUC_MINOR__) "." xstr(__GNUC_PATCHLEVEL__)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LEN(X) (sizeof(X) / sizeof((X)[0]))
|
#define LEN(X) (sizeof(X) / sizeof((X)[0]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user