Am 08.03.2009 um 17:10 schrieb Anthony Liguori:
Jan Kiszka wrote:
I'm just still waiting for a reply from Anthony on how to embed best
all
the "if (kvm_enabled()) foo();" patterns [2]. [...]
I really don't have a great suggestion. I've been hoping we could
come up with something better than if (kvm_enabled()) foo(). If we
can't, we can't.
What about this pattern:
#define KVM(x) if (kvm_enabled()) { x; }
KVM(foo());
That would make it shorter to type and allows to #define KVM(x) for
the no-KVM case.