On Tue, Sep 02, 2003 at 03:39:26PM -0700, Patrick Mochel wrote:
Tangential question: Do preprocessor conditionals evaluate to a value?
I.e. instead of doing:
#ifdef CONFIG_ACPI
int acpi_disabled = 0;
#else
int acpi_disabled = 1;
#endif
Could we do:
int acpi_disabled = (CONFIG_ACPI == 'y');
..or something?
ACPI=y -> #define CONFIG_ACPI 1
ACPI=m -> #define CONFIG_ACPI_MODULE 1
ACPI=n -> #undef CONFIG_ACPI
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf