Sha256: 9bc142b134137106c5d527f01389ef484d636b81311f9591c1cc4688d1d2be20

Contents?: true

Size: 1.25 KB

Versions: 8

Compression:

Stored size: 1.25 KB

Contents

//
//  Platform.h
//  snowcrash
//
//  Created by Zdenek Nemec on 7/2/13.
//  Copyright (c) 2013 Apiary Inc. All rights reserved.
//

#ifndef SNOWCRASH_PLATFORM_H
#define SNOWCRASH_PLATFORM_H

#define AS_TYPE(Type, Obj) reinterpret_cast<Type *>(Obj)
#define AS_CTYPE(Type, Obj) reinterpret_cast<const Type *>(Obj)

#if defined(BUILDING_SNOWCRASH)
#   define DEPRECATED
#endif

#if defined(_MSC_VER)
#   define FORCEINLINE __forceinline
#   if !defined(DEPRECATED)
#       define DEPRECATED __declspec(deprecated)
#   endif
#elif defined(__clang__) || defined(__GNUC__)
#   define FORCEINLINE inline
#   if !defined(DEPRECATED)
#       define DEPRECATED __attribute__((deprecated))
#   endif
#else
#   define FORCEINLINE inline
#   if !defined(DEPRECATED)
#       define DEPRECATED
#   endif
#endif

#ifndef SC_API
#  ifdef _WIN32
#     if defined(CSNOWCRASH_BUILD_SHARED) /* build dll */
#         define SC_API __declspec(dllimport)
#     elif !defined(CSNOWCRASH_BUILD_STATIC) /* use dll */
#         define SC_API __declspec(dllexport)
#     else /* static library */
#         define SC_API
#     endif
#  else
#     if __GNUC__ >= 4
#         define SC_API /*__attribute__((visibility("default")))*/
#     else
#         define SC_API
#     endif
#  endif
#endif

#endif

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
redsnow-0.1.6 ext/snowcrash/src/Platform.h
redsnow-0.1.5 ext/snowcrash/src/Platform.h
redsnow-0.1.4 ext/snowcrash/src/Platform.h
redsnow-0.1.3 ext/snowcrash/src/Platform.h
redsnow-0.1.2 ext/snowcrash/src/Platform.h
redsnow-0.1.1 ext/snowcrash/src/Platform.h
redsnow-0.1.0 ext/snowcrash/src/Platform.h
redsnow-0.0.8 ext/snowcrash/src/Platform.h