mirror of
https://github.com/javalsai/lidm.git
synced 2025-07-02 22:05:04 +02:00
- config now is more toml like
- no need to declare all fields, it implements defaults
- no yanderedev code, introspection babbyyy 😎
- desktop and config files parser semi-unification
- misc tweaks all over (mainly allocation failures handling)
26 lines
389 B
C
26 lines
389 B
C
#ifndef MACROSH_
|
|
#define MACROSH_
|
|
|
|
// Do we just replace the compiler with clang??
|
|
#if defined(__clang__)
|
|
#define NULLABLE _Nullable
|
|
#else
|
|
#define NULLABLE
|
|
#endif
|
|
|
|
#if defined(__clang__)
|
|
#define NNULLABLE _Nonnull
|
|
#else
|
|
#define NNULLABLE
|
|
#endif
|
|
|
|
#if defined(__clang__)
|
|
#define UNULLABLE _Null_unspecified
|
|
#else
|
|
#define UNULLABLE
|
|
#endif
|
|
|
|
#define LEN(X) (sizeof(X) / sizeof((X)[0]))
|
|
|
|
#endif
|