Added LFS_BIGGEST for enabling all opt-in features

Like LFS_LITTLER, this is a simple alias for existing defines. In this
case it enables all opt-in features, which is useful for testing:

  LFS_BIGGEST => LFS_CKPROGS
                 LFS_CKFETCHES
                 LFS_CKPARITY
                 LFS_CKDATACKSUMS
                 LFS_GC

This lowers the risk of forgetting a feature when running tests, which
has already happend a couple times.

The name comes from the idea of adding other tiers of features (
LFS_LITTLER, LFS_LITTLERER, LFS_BIGGER, etc), but I'm not entirely sure
what these would all look like.
This commit is contained in:
Christopher Haster
2025-01-28 00:52:18 -06:00
parent 39dd4a8d15
commit ad72d252b5
+9
View File
@@ -35,6 +35,15 @@
#define LFS_NO_ASSERT
#endif
// LFS_BIGGEST enables all opt-in features
#ifdef LFS_BIGGEST
#define LFS_CKPROGS
#define LFS_CKFETCHES
#define LFS_CKPARITY
#define LFS_CKDATACKSUMS
#define LFS_GC
#endif
// System includes
#include <stdint.h>