R
Ram
Hi,
I have some code in my header file like this:
#if defined(some #define variable)
static struct x_info x_ids[] = {
{ "root", x_ROOT, },
{ "system", x_SYSTEM, },
{ "radio", x_RADIO, },
{ "bluetooth", x_BLUETOOTH, },
{ "graphics", x_GRAPHICS, },
};
#else
static struct x_info y_ids[] = {
{ "root", y_ROOT, },
{ "system", y_SYSTEM, },
{ "radio", y_RADIO, },
{ "bluetooth", y_BLUETOOTH, },
{ "graphics", y_GRAPHICS, },
};
#endif
when i execute my program, based on command flag , it should fall
into one of the #if or else condition?
Is it possible to do? any other way around? basically i want to put
conditional breaks to some of my structures when first time executes
with conditional flags.
Please help me!
-Ram
I have some code in my header file like this:
#if defined(some #define variable)
static struct x_info x_ids[] = {
{ "root", x_ROOT, },
{ "system", x_SYSTEM, },
{ "radio", x_RADIO, },
{ "bluetooth", x_BLUETOOTH, },
{ "graphics", x_GRAPHICS, },
};
#else
static struct x_info y_ids[] = {
{ "root", y_ROOT, },
{ "system", y_SYSTEM, },
{ "radio", y_RADIO, },
{ "bluetooth", y_BLUETOOTH, },
{ "graphics", y_GRAPHICS, },
};
#endif
when i execute my program, based on command flag , it should fall
into one of the #if or else condition?
Is it possible to do? any other way around? basically i want to put
conditional breaks to some of my structures when first time executes
with conditional flags.
Please help me!
-Ram