⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 visibility.h

📁 The library provides supports for run-time loaded plugin classes in C++
💻 H
字号:
#ifndef VISIBILITY_H#define VISIBILITY_H// This gives a way to make global symbols visible or hidden// On Win32, when building DLLs symbols are by default hidden // and must be made visible with __declspace(dllexport). The// visibility attribute in GCC provides the same functionality.//// DynObjs themselves don't use very many global symbols, since// they rely on vtable position for linking. It is really only // the 'CreateDynObjFn' that must be exported from a DynObj library. #if defined(WIN32) || defined(_WIN32)   #define SYM_LOCAL   #define SYM_EXPORT __declspec(dllexport)  #define SYM_IMPORT __declspec(dllimport)#else  #if(__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)    #define SYM_LOCAL __attribute__ ((visibility("hidden")))    #define SYM_EXPORT __attribute__ ((visibility("default")))    #define SYM_IMPORT __attribute__ ((visibility("default")))  #else    #define SYM_IMPORT    #define SYM_EXPORT    #define SYM_IMPORT  #endif#endif	#endif // VISIBILITY_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -