Ignore:
Timestamp:
05/22/15 10:28:08 (10 years ago)
Author:
epyon
Message:
  • massive restructuring
  • detail::data_base class for container/reference class base
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/core/common.hh

    r365 r368  
    137137#if NV_COMPILER == NV_MSVC
    138138#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
    139144#elif NV_COMPILER == NV_GNUC || NV_COMPILER == NV_CLANG
    140145#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
    142152#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
    143158#endif
    144159
Note: See TracChangeset for help on using the changeset viewer.