title: c++ make macro, how to make compile time function generate
body: <p>here is example, use cpp14</p>
  
  <p>After registering functions at compile time, we want to generate code that can execute the registered functions after executing them in a specific function.</p>
  
  <pre><code>struct Data
  {
      DECLARE_DATA(Banana);
      DECLARE_DATA(Apple);
      DECLARE_DATA(Orange);
      ...
  };
  </code></pre>
  
  <hr>
  
  <pre><code>struct Data
  {
      int Banana;
      int GetBanana() { return Banana; }
      int SetBanana() { // set Banana }
  
      int Apple;
      int GetApple() { return Apple; }
      int SetApple() { // set Apple; }
  
      int Orange;
      int GetOrange() { return Orange; }
      int SetOrange() { // set Orange; }
      ...
  
      bool Load()
      {
          SetBanana();
          SetApple();
          SetOrange();
          ...
      }
  };
  </code></pre>
  
  <p>please help me....</p>