zephyr/include
Andy Ross 5bc458a0fa util.h: Add IS_ENABLED() macro for expression-legal ifdef-checking
This trick was pioneered in Linux as the config_enabled() macro.  The
madness has the effect of taking a macro value that may be defined to
"1" (e.g. CONFIG_MYFEATURE), or may not be defined at all and turning
it into a literal expression that can be used at "runtime".  That is,
it works similarly to "defined(CONFIG_MYFEATURE)" does except that it
is an expansion that can exist in a standard expression and be seen by
the compiler and optimizer.  Thus much #ifdef usage can be replaced
with cleaner expressions like:

    if (IS_ENABLED(CONFIG_MYFEATURE))
            myfeature_enable();

Change-Id: I40657d2aa3f802429ac33675a1fe245a5da86615
Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2017-01-11 23:32:32 +00:00
..
arch
bluetooth
debug
display
drivers
fs
linker
logging
misc
net
shell
toolchain
usb
adc.h
aio_comparator.h
atomic.h
cache.h
clock_control.h
counter.h
device.h
disk_access.h
dma.h
eth.h
flash.h
fs.h
gpio.h
i2c.h
init.h
ipm.h
irq_offload.h
irq.h
kernel_version.h
kernel.h
legacy.h
linker-defs.h
linker-tool-gcc.h
linker-tool.h
microkernel.h
nanokernel.h
pinmux.h
power.h
pwm.h
random.h
rtc.h
section_tags.h
sections.h
sensor.h
shared_irq.h
spi.h
sw_isr_table.h
sys_clock.h
sys_io.h
toolchain.h
uart.h
watchdog.h
zephyr.h