In message <11**********************@z14g2000cwz.googlegroups .com>,
we*****@yahoo.com writes
//a header file
#define API_ABC
//a CPP file
class API_ABC Myclass;
class Myclass{
.....
};
What does "#define API_ABC" do when declaring a class(Myclass in this
case)?
Nothing, in this case.
Why use it?
(a) Maybe as a hint to the maintainer that the class is an abstract base
class needed for this application programming interface .
(b) In some programming environments the macro might be differently
defined, so it expands to some (non-standard) compiler- and
platform-dependent string which tells the compiler to do something
special with the class.
--
Richard Herring