Skip to content

Commit 30d9143

Browse files
committed
Replaced LFS_LITTLER with LFS_NO_LOG
This no longer includes LFS_NO_ASSERT, but at least 2 defines is better than 5 right? LFS_NO_LOG => LFS_NO_DEBUG LFS_NO_INFO LFS_NO_WARN LFS_NO_ERROR The benefit is a much more obvious name, and avoids confusion when mixed with other feature aliases (LFS_LITTLER + LFS_BIGGEST?).
1 parent 2ec537f commit 30d9143

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

lfs_util.h

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,6 @@
2424
// Some convenient macro aliases
2525
// TODO move these to something like lfs_cfg.h?
2626

27-
// LFS_LITTLER disables non-essential/debugging utils
28-
//
29-
// note your system may already make these zero cost in release mode
30-
#ifdef LFS_LITTLER
31-
#define LFS_NO_DEBUG
32-
#define LFS_NO_INFO
33-
#define LFS_NO_WARN
34-
#define LFS_NO_ERROR
35-
#define LFS_NO_ASSERT
36-
#endif
37-
3827
// LFS_BIGGEST enables all opt-in features
3928
#ifdef LFS_BIGGEST
4029
#define LFS_CKPROGS
@@ -44,6 +33,14 @@
4433
#define LFS_GC
4534
#endif
4635

36+
// LFS_NO_LOG disables all logging macros
37+
#ifdef LFS_NO_LOG
38+
#define LFS_NO_DEBUG
39+
#define LFS_NO_INFO
40+
#define LFS_NO_WARN
41+
#define LFS_NO_ERROR
42+
#endif
43+
4744

4845
// System includes
4946
#include <stdint.h>

0 commit comments

Comments
 (0)