Skip to contentSkip to conversation

Low priority request for info about alternative to #ifdef

U-Boot James Chargin 1 participant 2 messages Mar 21, 2017 – Apr 7, 2017

lore
Share & tools
lore
#0 lore raw

Hi

I've seen periodic discussion on the U-Boot mailing list of alternatives to #ifdef. I need a bit more information about one specific alternative, but in my searches of the source for 2017.03, I can't find examples that might help me. Also, my memory of this is a dim so I'm not sure I'm looking for the right thing.

Is there something that is similar to "#ifdef CONFIG_*" but looks more like "if_defined(CONFIG_*)" and relies on compile/link time elimination of unused code?

Thanks for your time.

Jim

Signature · 3 lines
Jim Chargin
AJA Video Systems                       jimc at aja.com
(530) 271-3334                          http://www.aja.com
#1 lore raw

Did I make a mistake including "Low priority" in the subject?

If anyone remembers this discussion, I'd appreciate a pointer.

Thanks,
Jim

Quoted 15 lines · James Chargin

Hi

I've seen periodic discussion on the U-Boot mailing list of alternatives to #ifdef. I need a bit more information about one specific alternative, but in my searches of the source for 2017.03, I can't find examples that might help me. Also, my memory of this is a dim so I'm not sure I'm looking for the right thing.

Is there something that is similar to "#ifdef CONFIG_*" but looks more like "if_defined(CONFIG_*)" and relies on compile/link time elimination of unused code?

Thanks for your time.

Jim

Signature · 3 lines
Jim Chargin
AJA Video Systems                       jimc at aja.com
(530) 271-3334                          http://www.aja.com