tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

macros.h (603B)


      1 //
      2 // Copyright 2017 The ANGLE Project Authors. All rights reserved.
      3 // Use of this source code is governed by a BSD-style license that can be
      4 // found in the LICENSE file.
      5 //
      6 // macros.h: Compatiblity hacks for importing Chromium's MRUCache.
      7 
      8 #ifndef ANGLEBASE_MACROS_H_
      9 #define ANGLEBASE_MACROS_H_
     10 
     11 // A macro to disallow the copy constructor and operator= functions.
     12 // This should be used in the private: declarations for a class.
     13 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
     14    TypeName(const TypeName &) = delete;   \
     15    void operator=(const TypeName &) = delete
     16 
     17 #endif  // ANGLEBASE_MACROS_H_