chromium/third_party/openscreen/src/platform/base/macros.h

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef PLATFORM_BASE_MACROS_H_
#define PLATFORM_BASE_MACROS_H_

#ifdef DISALLOW_COPY
#define OSP_DISALLOW_COPY
#else
#define OSP_DISALLOW_COPY(ClassName)
#endif

#ifdef DISALLOW_ASSIGN
#define OSP_DISALLOW_ASSIGN
#else
#define OSP_DISALLOW_ASSIGN(ClassName)
#endif

#ifdef DISALLOW_COPY_AND_ASSIGN
#define OSP_DISALLOW_COPY_AND_ASSIGN
#else
#define OSP_DISALLOW_COPY_AND_ASSIGN(ClassName)
#endif

#ifdef DISALLOW_IMPLICIT_CONSTRUCTORS
#define OSP_DISALLOW_IMPLICIT_CONSTRUCTORS
#else
#define OSP_DISALLOW_IMPLICIT_CONSTRUCTORS(ClassName)
#endif

#ifdef NOINLINE
#define OSP_NOINLINE
#else
#define OSP_NOINLINE
#endif

#endif  // PLATFORM_BASE_MACROS_H_