高级会员
注册日期: 06-11
帖子: 1527
精华: 15
现金: 6353 标准币
资产: 6353 标准币
|
回复: node sample
8.csmacro.h
#ifndef _CS_Macro_H
# define _CS_Macro_H
# define Handle(ClassName) ClassName##Handle
# define Oid(ClassName) Oid_##ClassName
# define CS_TYPE(ClassName) ClassName##_Type()
# ifdef WNT
# ifndef CS_EXPORT
# define CS_EXPORT __declspec( dllexport )
// For global variables :
# define CS_EXPORTEXTERN __declspec( dllexport ) extern
# define CS_EXPORTEXTERNC extern "C" __declspec( dllexport )
# endif /* CS_EXPORT */
# ifndef CS_IMPORT
# define CS_IMPORT __declspec( dllimport ) extern
# define CS_IMPORTC extern "C" __declspec( dllimport )
# endif /* CS_IMPORT */
# else /* WNT */
# ifndef CS_EXPORT
# define CS_EXPORT
// For global variables :
# define CS_EXPORTEXTERN extern
# define CS_EXPORTEXTERNC extern "C"
# endif /* CS_EXPORT */
# ifndef CS_IMPORT
# define CS_IMPORT extern
# define CS_IMPORTC extern "C"
# endif /* CS_IMPORT */
# endif /* WNT */
# ifndef __CS_API
//# ifdef WNT
# if !defined(WNT) || defined(__CS_DLL) || defined(__FSD_DLL) || defined(__GraphDS_DLL) || defined(__GraphTools_DLL) || defined(__MMgt_DLL) || defined(__OSD_DLL) || defined(__Plugin_DLL) || defined(__Quantity_DLL) || defined(__Resource_DLL) || defined(__SortTools_DLL) || defined(__StdFail_DLL) || defined(__Storage_DLL) || defined(__TColQuantity_DLL) || defined(__TColStd_DLL) || defined(__TCollection_DLL) || defined(__TShort_DLL) || defined(__Units_DLL) || defined(__UnitsAPI_DLL) || defined(__Dynamic_DLL) || defined(__Materials_DLL) || defined(__Dico_DLL)
# define __CS_API CS_EXPORT
# define __CS_APIEXTERN CS_EXPORTEXTERN
# else
# define __CS_API CS_IMPORT
# define __CS_APIEXTERN CS_IMPORT
# endif // __CS_DLL
//# else
//# define __CS_API
//# endif // WNT
# endif // __CS_API
#endif
|