Hi,
I read a program, found a #define statement.
#define HMIClass_DECLARE(name) \
HMIClass &name();
I think the macro works like:
Class A { .. };
A &aInstance();
But I am a little confused with A &a();
I think, it is used to create an instance.
Hi,
I read a program, found a #define statement.
#define HMIClass_DECLARE(name) \
HMIClass &name();
I think the macro works like:
Class A { .. };
A &aInstance();
But I am a little confused with A &a();
I think, it is used to create an instance.
The macro gets replaced by a function that is called like the argument given to the macro and which returns an HMIClass instance per reference
gets replaced with
Cheers,
_
Yes, thanks, I stick into object creation.
Bookmarks