Sha256: a7b5ff35209188c35950a20969a4743614b6d54d5612d470859b4578b756fcbc

Contents?: true

Size: 1.67 KB

Versions: 23

Compression:

Stored size: 1.67 KB

Contents

#ifndef BIGDECIMAL_STATIC_ASSERT_H
#define BIGDECIMAL_STATIC_ASSERT_H

#include "feature.h"

#ifdef HAVE_RUBY_INTERNAL_STATIC_ASSERT_H
# include <ruby/internal/static_assert.h>
#endif

#ifdef RBIMPL_STATIC_ASSERT
# define STATIC_ASSERT RBIMPL_STATIC_ASSERT
#endif

#ifndef STATIC_ASSERT
# /* The following section is copied from CRuby's static_assert.h */

# if defined(__cplusplus) && defined(__cpp_static_assert)
#  /* https://isocpp.org/std/standing-documents/sd-6-sg10-feature-test-recommendations */
#  define BIGDECIMAL_STATIC_ASSERT0 static_assert

# elif defined(__cplusplus) && defined(_MSC_VER) && _MSC_VER >= 1600
#  define BIGDECIMAL_STATIC_ASSERT0 static_assert

# elif defined(__INTEL_CXX11_MODE__)
#  define BIGDECIMAL_STATIC_ASSERT0 static_assert

# elif defined(__cplusplus) && __cplusplus >= 201103L
#  define BIGDECIMAL_STATIC_ASSERT0 static_assert

# elif defined(__cplusplus) && __has_extension(cxx_static_assert)
#  define BIGDECIMAL_STATIC_ASSERT0 __extension__ static_assert

# elif defined(__STDC_VERSION__) && __has_extension(c_static_assert)
#  define BIGDECIMAL_STATIC_ASSERT0 __extension__ _Static_assert

# elif defined(__STDC_VERSION__) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#  define BIGDECIMAL_STATIC_ASSERT0 __extension__ _Static_assert
#endif

# if defined(__DOXYGEN__)
#  define STATIC_ASSERT static_assert

# elif defined(BIGDECIMAL_STATIC_ASSERT0)
#  define STATIC_ASSERT(name, expr) \
    BIGDECIMAL_STATIC_ASSERT0(expr, #name ": " #expr)

# else
#  define STATIC_ASSERT(name, expr) \
    typedef int static_assert_ ## name ## _check[1 - 2 * !(expr)]
# endif
#endif /* STATIC_ASSERT */


#endif /* BIGDECIMAL_STATIC_ASSERT_H */

Version data entries

23 entries across 23 versions & 7 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/bigdecimal-3.1.8/ext/bigdecimal/static_assert.h
bigdecimal-3.1.9 ext/bigdecimal/static_assert.h
cloudsmith-api-2.0.16 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.8/ext/bigdecimal/static_assert.h
cloudsmith-api-2.0.15 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.8/ext/bigdecimal/static_assert.h
cloudsmith-api-2.0.14 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.8/ext/bigdecimal/static_assert.h
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/bigdecimal-3.1.8/ext/bigdecimal/static_assert.h
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/bigdecimal-3.1.8/ext/bigdecimal/static_assert.h
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/bigdecimal-3.1.8/ext/bigdecimal/static_assert.h
cloudsmith-api-2.0.13 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.7/ext/bigdecimal/static_assert.h
cloudsmith-api-2.0.12 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.7/ext/bigdecimal/static_assert.h
bigdecimal-3.1.7 ext/bigdecimal/static_assert.h
cloudsmith-api-2.0.11 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.6/ext/bigdecimal/static_assert.h
cloudsmith-api-2.0.10 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.6/ext/bigdecimal/static_assert.h
cloudsmith-api-2.0.9 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.6/ext/bigdecimal/static_assert.h
cloudsmith-api-2.0.8 vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.6/ext/bigdecimal/static_assert.h
mlh-rubocop-config-1.0.3 vendor/bundle/ruby/3.2.0/gems/bigdecimal-3.1.6/ext/bigdecimal/static_assert.h
bigdecimal-3.1.6 ext/bigdecimal/static_assert.h
bigdecimal-3.1.5 ext/bigdecimal/static_assert.h
bigdecimal-3.1.4 ext/bigdecimal/static_assert.h
bigdecimal-3.1.3 ext/bigdecimal/static_assert.h