Skip to content

Commit 5da8f3e

Browse files
committed
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.
1 parent e5e985a commit 5da8f3e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lfs_util.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@
3535
#define LFS_NO_ASSERT
3636
#endif
3737

38+
// LFS_BIGGEST enables all opt-in features
39+
#ifdef LFS_BIGGEST
40+
#define LFS_CKPROGS
41+
#define LFS_CKFETCHES
42+
#define LFS_CKPARITY
43+
#define LFS_CKDATACKSUMS
44+
#define LFS_GC
45+
#endif
46+
3847

3948
// System includes
4049
#include <stdint.h>

0 commit comments

Comments
 (0)