summaryrefslogtreecommitdiff
path: root/chromium/gpu/command_buffer/common/compiler_specific.h
blob: 2669bff574058ed19c0d6fc105bd5e0c3c961a5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef GPU_COMMAND_BUFFER_COMMON_COMPILER_SPECIFIC_H_
#define GPU_COMMAND_BUFFER_COMMON_COMPILER_SPECIFIC_H_

// Annotate a virtual method indicating it must be overriding a virtual
// method in the parent class.
// Use like:
//   virtual void foo() OVERRIDE;
#ifndef OVERRIDE
#ifdef _MSC_VER
#define OVERRIDE override
#elif defined(__clang__)
#define OVERRIDE override
#else
#define OVERRIDE
#endif
#endif

#endif  // GPU_COMMAND_BUFFER_COMMON_COMPILER_SPECIFIC_H_