Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:10:07

0001 #ifndef CPYCPPYY_COMMONDEFS_H
0002 #define CPYCPPYY_COMMONDEFS_H
0003 
0004 // export macros for our own API
0005 // import/export (after precommondefs.h from PyPy)
0006 #ifdef _MSC_VER
0007 // Windows requires symbols to be explicitly exported
0008 #define CPYCPPYY_EXPORT extern __declspec(dllexport)
0009 #define CPYCPPYY_IMPORT extern __declspec(dllimport)
0010 #define CPYCPPYY_CLASS_EXPORT __declspec(dllexport)
0011 
0012 // CPYCPPYY_EXTERN is dual use in the public API
0013 #ifndef CPYCPPYY_INTERNAL
0014 #define CPYCPPYY_EXTERN extern __declspec(dllexport)
0015 #define CPYCPPYY_CLASS_EXTERN __declspec(dllexport)
0016 #else
0017 #define CPYCPPYY_EXTERN extern __declspec(dllimport)
0018 #define CPYCPPYY_CLASS_EXTERN __declspec(dllimport)
0019 #endif
0020 
0021 #define CPYCPPYY_STATIC
0022 
0023 #else
0024 // Linux, Mac, etc.
0025 #define CPYCPPYY_EXPORT extern
0026 #define CPYCPPYY_IMPORT extern
0027 #define CPYCPPYY_CLASS_EXPORT
0028 #define CPYCPPYY_EXTERN extern
0029 #define CPYCPPYY_CLASS_EXTERN
0030 #define CPYCPPYY_STATIC static
0031 
0032 #endif
0033 
0034 #endif // !CPYCPPYY_COMMONDEFS_H