Sha256: 2bd494828b5d921c188a158a789cc631053ca621537641d2fa7e408ff0298ea5

Contents?: true

Size: 991 Bytes

Versions: 101

Compression:

Stored size: 991 Bytes

Contents

// Copyright 2009 The RE2 Authors.  All Rights Reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

#ifndef UTIL_UTIL_H_
#define UTIL_UTIL_H_

#define arraysize(array) (sizeof(array)/sizeof((array)[0]))

#ifndef ATTRIBUTE_NORETURN
#if defined(__GNUC__)
#define ATTRIBUTE_NORETURN __attribute__((noreturn))
#elif defined(_MSC_VER)
#define ATTRIBUTE_NORETURN __declspec(noreturn)
#else
#define ATTRIBUTE_NORETURN
#endif
#endif

#ifndef ATTRIBUTE_UNUSED
#if defined(__GNUC__)
#define ATTRIBUTE_UNUSED __attribute__((unused))
#else
#define ATTRIBUTE_UNUSED
#endif
#endif

#ifndef FALLTHROUGH_INTENDED
#if defined(__clang__)
#define FALLTHROUGH_INTENDED [[clang::fallthrough]]
#elif defined(__GNUC__) && __GNUC__ >= 7
#define FALLTHROUGH_INTENDED [[gnu::fallthrough]]
#else
#define FALLTHROUGH_INTENDED do {} while (0)
#endif
#endif

#ifndef NO_THREAD_SAFETY_ANALYSIS
#define NO_THREAD_SAFETY_ANALYSIS
#endif

#endif  // UTIL_UTIL_H_

Version data entries

101 entries across 101 versions & 3 rubygems

Version Path
grpc-1.71.0 third_party/re2/util/util.h
grpc-1.70.1 third_party/re2/util/util.h
grpc-1.69.0 third_party/re2/util/util.h
grpc-1.69.0.pre1 third_party/re2/util/util.h
grpc-1.68.1 third_party/re2/util/util.h
grpc-1.67.0 third_party/re2/util/util.h
grpc-1.67.0.pre1 third_party/re2/util/util.h
grpc-1.66.0 third_party/re2/util/util.h
grpc-1.66.0.pre5 third_party/re2/util/util.h
grpc-1.66.0.pre3 third_party/re2/util/util.h
grpc-1.58.3 third_party/re2/util/util.h
grpc-1.59.5 third_party/re2/util/util.h
grpc-1.60.2 third_party/re2/util/util.h
grpc-1.61.3 third_party/re2/util/util.h
grpc-1.62.3 third_party/re2/util/util.h
grpc-1.63.2 third_party/re2/util/util.h
grpc-1.64.3 third_party/re2/util/util.h
grpc-1.65.2 third_party/re2/util/util.h
grpc-1.65.1 third_party/re2/util/util.h
grpc-1.65.0 third_party/re2/util/util.h