Sha256: 81b725a93d9fedb344c2fba40e3ea3dde2e080ebb8091fd8664f66f888eabb8f

Contents?: true

Size: 1.15 KB

Versions: 12

Compression:

Stored size: 1.15 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)
#   if !defined(DEPRECATED)
#       define DEPRECATED __declspec(deprecated)
#   endif
#elif defined(__clang__) || defined(__GNUC__)
#   if !defined(DEPRECATED)
#       define DEPRECATED __attribute__((deprecated))
#   endif
#else
#   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

12 entries across 12 versions & 1 rubygems

Version Path
redsnow-0.4.4 ext/drafter/ext/snowcrash/src/Platform.h
redsnow-0.4.3 ext/drafter/ext/snowcrash/src/Platform.h
redsnow-0.4.1 ext/drafter/ext/snowcrash/src/Platform.h
redsnow-0.4.0 ext/drafter/ext/snowcrash/src/Platform.h
redsnow-0.3.7 ext/snowcrash/src/Platform.h
redsnow-0.3.4 ext/snowcrash/src/Platform.h
redsnow-0.3.3 ext/snowcrash/src/Platform.h
redsnow-0.3.2 ext/snowcrash/src/Platform.h
redsnow-0.3.1 ext/snowcrash/src/Platform.h
redsnow-0.3.0 ext/snowcrash/src/Platform.h
redsnow-0.2.1 ext/snowcrash/src/Platform.h
redsnow-0.2.0 ext/snowcrash/src/Platform.h