blob: 7d9349a4dfd927b019a8e69352a7cc1bcbc4cc19 [file] [log] [blame]
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +00001//
2// Copyright (c) 2002-2010 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
7// angleutils.h: Common ANGLE utilities.
8
daniel@transgaming.combbf56f72010-04-20 18:52:13 +00009#ifndef COMMON_ANGLEUTILS_H_
10#define COMMON_ANGLEUTILS_H_
11
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +000012// A macro to disallow the copy constructor and operator= functions
13// This must be used in the private: declarations for a class
14#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
15 TypeName(const TypeName&); \
16 void operator=(const TypeName&)
17
alokp@chromium.org79fb1012012-04-26 21:07:39 +000018#if defined(_MSC_VER)
19#define snprintf _snprintf
20#endif
21
daniel@transgaming.combbf56f72010-04-20 18:52:13 +000022#endif // COMMON_ANGLEUTILS_H_