Im trying to make a macro for padding my classes which i use in game hacking. Let me show you what i am trying to do:
#define pad(loc, size)  private: \
                    char _pad#loc[#size]; \
                    public:
then i want to use it like:
class C_VTable {
public:
   float member;          // <- public
   pad(0x4, 0x30);        // <- private im not sure how to make the pad name be like pad0x4
   float anothermember;   // <- public again
};
How can i do this, because i get an error saying it expected a ; a little messy, but i hope you understand.
Any help is greatly appreciated :)
 
    