What does it mean when a class is declared like this:
class CP_EXPORT CP_Window : public CP_Window_Imp
What is the CP_EXPORT portion?
What does it mean/imply?
What does it mean when a class is declared like this:
class CP_EXPORT CP_Window : public CP_Window_Imp
What is the CP_EXPORT portion?
What does it mean/imply?
CP_EXPORT
is most probably a macro to conditionally export or import the class from a dynamic library.
For example, when using Visual C++, a macro is used to conditionally select between using dllexport
and dllimport
. This allows the same header to be used for both the project building the DLL itself and any projects that link against or load the DLL.
Are you using C-Pluff?
Defines:
#define CP_EXPORT
Declares a symbol to be exported for inter-module usage.
#define CP_IMPORT
Declares a symbol to be imported from another module.
#define CP_HIDDEN
Declares a symbol hidden from other modules.
CP_EXPORT
is a macro that expands to some compiler-specific special construction (probably __declspec
in MSVC or __attribute__
in gcc) that does something. To find out exactly what, you'll need to search for the definition of the CP_EXPORT
macro