What does this kind of C++ class declaration mean?

后端 未结 3 2053
野性不改
野性不改 2021-01-24 07:08

I downloaded Ogre3D source code, and found this kind of class declaration:

class _OgreExport TimeIndex
{ ...

I know \"TimeIndex\" is the class

3条回答
  •  醉话见心
    2021-01-24 07:26

    It's a macro that expands to something like __declspec(dllexport), marking the class to be exported by the linker.

提交回复
热议问题