mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-11 22:25:14 -05:00
17 lines
No EOL
382 B
C
17 lines
No EOL
382 B
C
// Problem: Both branches branch conditions evaluate to true.
|
|
|
|
/* `main.c` included this header after including `defining_header.h`.
|
|
* Hence, `#ifdef ABC` should evaluate to true and `#ifndef ABC should
|
|
* evaluate to false.
|
|
*/
|
|
|
|
/*
|
|
#ifdef ABC // ok: evaluates to true.
|
|
#error "ABC defined"
|
|
#endif
|
|
*/
|
|
|
|
|
|
#ifndef ABC // bug: evaluates to true
|
|
#error "ABC defined"
|
|
#endif |