mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 14:00:09 -10:00
BUG=angle:705 Change-Id: I65d557f35e4c9f1d94853a775330a92b7d428847 Reviewed-on: https://chromium-review.googlesource.com/213810 Tested-by: Jamie Madill <[email protected]> Reviewed-by: Geoff Lang <[email protected]>
25 lines
650 B
C++
25 lines
650 B
C++
//
|
|
// Copyright (c) 2014 The ANGLE Project 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 UTIL_SHARED_UTILS_H
|
|
#define UTIL_SHARED_UTILS_H
|
|
|
|
#define SHADER_SOURCE(...) #__VA_ARGS__
|
|
|
|
// A macro to disallow the copy constructor and operator= functions
|
|
// This must be used in the private: declarations for a class
|
|
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
|
TypeName(const TypeName&); \
|
|
void operator=(const TypeName&)
|
|
|
|
template <typename T, size_t N>
|
|
inline size_t ArraySize(T(&)[N])
|
|
{
|
|
return N;
|
|
}
|
|
|
|
#endif // UTIL_SHARED_UTILS_H
|