Skip to content

Commit b90126c

Browse files
committed
Revert changes to macros.inc
1 parent 2066a6b commit b90126c

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

include/macros.inc

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1-
! Helper macro: define a feature flag with default value 1
2-
! This will enable the compulation of the correspond module
3-
#define STDLIB_DEFAULT(name) \
4-
#if !defined name \
5-
#define name 1 \
1+
!Default: compile the ansi module
2+
#if !defined STDLIB_ANSI
3+
#define STDLIB_ANSI 1
64
#endif
75

8-
STDLIB_DEFAULT(STDLIB_ANSI)
9-
STDLIB_DEFAULT(STDLIB_BITSETS)
10-
STDLIB_DEFAULT(STDLIB_HASHMAPS)
11-
STDLIB_DEFAULT(STDLIB_STATS)
6+
!Default: compile the bitsets module
7+
#if !defined STDLIB_BITSETS
8+
#define STDLIB_BITSETS 1
9+
#endif
10+
11+
!Default: compile the hashmaps module
12+
#if !defined STDLIB_HASHMAPS
13+
#define STDLIB_HASHMAPS 1
14+
#endif
15+
16+
!Default: compile the stats module
17+
#if !defined STDLIB_STATS
18+
#define STDLIB_STATS 1
19+
#endif

0 commit comments

Comments
 (0)