Commit e1d61e3
committed
Add static assert on IS_ENABLED() macro
This patch adds a build-time oracle for IS_ENABLED(). MSVC's legacy
preprocessor mis-handles the token-paste + rescan and silently returns 0
for a defined-as-1 flag, disabling every IS_ENABLED-gated feature.
Related-to: goToMain/libosdp#289
Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>1 parent 654e73c commit e1d61e3
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
0 commit comments