lidm/include/macros.h
javalsai 5174f0b2bf
feat: modernize config
- 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)
2025-06-13 14:05:19 +02:00

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