G
Gary Wessle
Hi
I need to create an object of her_t OR his_t inside a namespace. the
choice should be decided based on a macro. did the following
accomplish this?
thank you.
// macro
// uncomment ONLY ONE of the 2 lines below
#define HIS
//#define HER
namespace s_inf
{
....
#ifdef HIS
his_t conn; // FXGame OR FXTrade
#endif
#ifdef HER
her_t conn;
#endif
....
}
the above created his_t and NOT her_t object. right?
// place in a ".h" file and #include it in ".cpp" file and use the
object "conn".
I need to create an object of her_t OR his_t inside a namespace. the
choice should be decided based on a macro. did the following
accomplish this?
thank you.
// macro
// uncomment ONLY ONE of the 2 lines below
#define HIS
//#define HER
namespace s_inf
{
....
#ifdef HIS
his_t conn; // FXGame OR FXTrade
#endif
#ifdef HER
her_t conn;
#endif
....
}
the above created his_t and NOT her_t object. right?
// place in a ".h" file and #include it in ".cpp" file and use the
object "conn".