gfx/angle/src/compiler/preprocessor/pp_utils.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/angle/src/compiler/preprocessor/pp_utils.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +//
     1.5 +// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
     1.6 +// Use of this source code is governed by a BSD-style license that can be
     1.7 +// found in the LICENSE file.
     1.8 +//
     1.9 +
    1.10 +// pp_utils.h: Common preprocessor utilities
    1.11 +
    1.12 +#ifndef COMPILER_PREPROCESSOR_PPUTILS_H_
    1.13 +#define COMPILER_PREPROCESSOR_PPUTILS_H_
    1.14 +
    1.15 +// A macro to disallow the copy constructor and operator= functions
    1.16 +// This must be used in the private: declarations for a class.
    1.17 +#define PP_DISALLOW_COPY_AND_ASSIGN(TypeName) \
    1.18 +  TypeName(const TypeName&);               \
    1.19 +  void operator=(const TypeName&)
    1.20 +
    1.21 +#endif // COMPILER_PREPROCESSOR_PPUTILS_H_

mercurial