On 16.10.2017 18:19, fl wrote:
> Hi,
>
> I know a class definition in general. When I see the below code snippet,
> it is found there is a modification: 'MY_MODULE_API' after class keyword.
> What is this thing?
> class MY_MODULE_API cognitive : virtual public gr::block
Most probably this is a macro which expands to __declspec(dllexport) or
__declspec(dllimport) as needed, on Windows. See
https://msdn.microsoft.com/en-us/library/81h27t8c.aspx (featuring a
non-caps macro in the true MS style).
This stuff is necessary because of the peculiarities of how DLL linking
and name resolution works in Windows.