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:
@@ -35,6 +35,15 @@
|
|||||||
#define LFS_NO_ASSERT
|
#define LFS_NO_ASSERT
|
||||||
#endif
|
#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
|
// System includes
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user