diff options
Diffstat (limited to 'chromium/gpu/command_buffer/common/compiler_specific.h')
-rw-r--r-- | chromium/gpu/command_buffer/common/compiler_specific.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium/gpu/command_buffer/common/compiler_specific.h b/chromium/gpu/command_buffer/common/compiler_specific.h new file mode 100644 index 00000000000..2669bff5740 --- /dev/null +++ b/chromium/gpu/command_buffer/common/compiler_specific.h @@ -0,0 +1,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_ |