Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: third_party/WebKit/Source/platform/inspector_protocol/Collections_h.template

Issue 2238423002: [DevTools] Generate all files in inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2240663003
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef Collections_h 5 #ifndef Collections_h
6 #define Collections_h 6 #define Collections_h
7 7
8 #include <cstddef> 8 #include <cstddef>
9 9
10 #if defined(__APPLE__) && !defined(_LIBCPP_VERSION) 10 #if defined(__APPLE__) && !defined(_LIBCPP_VERSION)
(...skipping 26 matching lines...) Expand all
37 37
38 // Macro that returns a compile time constant with the length of an array, but g ives an error if passed a non-array. 38 // Macro that returns a compile time constant with the length of an array, but g ives an error if passed a non-array.
39 template<typename T, std::size_t Size> char (&ArrayLengthHelperFunction(T (&)[Si ze]))[Size]; 39 template<typename T, std::size_t Size> char (&ArrayLengthHelperFunction(T (&)[Si ze]))[Size];
40 // GCC needs some help to deduce a 0 length array. 40 // GCC needs some help to deduce a 0 length array.
41 #if defined(__GNUC__) 41 #if defined(__GNUC__)
42 template<typename T> char (&ArrayLengthHelperFunction(T (&)[0]))[0]; 42 template<typename T> char (&ArrayLengthHelperFunction(T (&)[0]))[0];
43 #endif 43 #endif
44 #define PROTOCOL_ARRAY_LENGTH(array) sizeof(::ArrayLengthHelperFunction(array)) 44 #define PROTOCOL_ARRAY_LENGTH(array) sizeof(::ArrayLengthHelperFunction(array))
45 45
46 #endif // !defined(Collections_h) 46 #endif // !defined(Collections_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698