Changeset 368 for trunk/nv/core/common.hh
- Timestamp:
- 05/22/15 10:28:08 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/core/common.hh
r365 r368 137 137 #if NV_COMPILER == NV_MSVC 138 138 #define NV_DEPRECATED(func) __declspec(deprecated) func 139 #define NV_ALIGN(value) __declspec(align(value)) 140 #define NV_ALIGNED_STRUCT(value) __declspec(align(value)) struct 141 #define NV_RESTRICT __declspec(restrict) 142 #define NV_RESTRICT_VAR __restrict 143 //#define NV_CONSTEXPR 139 144 #elif NV_COMPILER == NV_GNUC || NV_COMPILER == NV_CLANG 140 145 #define NV_DEPRECATED(func) func __attribute__ ((deprecated)) 141 #else 146 #define NV_ALIGN(value) __attribute__((aligned(value))) 147 #define NV_ALIGNED_STRUCT(value) struct __attribute__((aligned(value))) 148 #define NV_RESTRICT __restrict__ 149 #define NV_RESTRICT_VAR __restrict__ 150 //#define NV_CONSTEXPR constexpr 151 #else 142 152 #define NV_DEPRECATED(func) func 153 #define NV_ALIGN(value) 154 #define NV_ALIGNED_STRUCT(value) struct 155 #define NV_RESTRICT 156 #define NV_RESTRICT_VAR 157 //#define NV_CONSTEXPR 143 158 #endif 144 159
Note: See TracChangeset
for help on using the changeset viewer.