In C++, macro usage before semicolon in function declaration -
can please explain me following code:
#ifndef some_def #define some_def #endif class base_class{ public: base_class() some_def; ~base_class() some_def; bool init(int arg1, int arg2) some_def; };
i not able understand usage of macro after every function.
regards, navnish
in case, nothing, unless some_def
defined somewhere else, example:
#define some_def { cout << "default definition" << endl; }
if some_def
defined that, every function in class includes some_def
have body.
Comments
Post a Comment