summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/angle/src/common/third_party/base/anglebase/macros.h
blob: 06391784e491c092b61c3862f2544d8a1fb91ac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//
// Copyright 2017 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// macros.h: Compatiblity hacks for importing Chromium's MRUCache.

#ifndef ANGLEBASE_MACROS_H_
#define ANGLEBASE_MACROS_H_

// A macro to disallow the copy constructor and operator= functions.
// This should be used in the private: declarations for a class.
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
    TypeName(const TypeName &) = delete;   \
    void operator=(const TypeName &) = delete

#endif  // ANGLEBASE_MACROS_H_