title: Declaration for object for which creation is wrapped in macro
body: <p>The following macro is defined in our code: </p>
  
  <pre><code>#define  MSGMacro(obj, arg)  MyPaymentClass obj(arg)
  </code></pre>
  
  <p>Where <code>MSGMacro</code> is used to creates the object of type <code>MyPaymentClass</code> using code like</p>
  
  <pre><code>MSGMacro(Card, 1);
  MSGMacro(Cash, 2);
  ----
  ---- //removed unwanted things to keep question cleaner. 
  </code></pre>
  
  <p>All the above code is in one cpp file, Now the problem is how we can expose these two objects of <code>MyPaymentClass</code> to other units in my project?
  i.e. I want to use <code>Card</code> and <code>Cash</code> in other CPP files. Please suggest how I can give the declaration for the same in some header file?</p>