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

Side by Side Diff: base/allocator/allocator_shim_internals.h

Issue 2720703004: allocator: Fix function type mismatch in allocator function definitions. (Closed)
Patch Set: Change shim functions to be ALWAYS_INLINE and replace all aliases with calls Created 3 years, 9 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
« no previous file with comments | « base/allocator/allocator_shim.cc ('k') | base/allocator/allocator_shim_override_cpp_symbols.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 BASE_ALLOCATOR_ALLOCATOR_SHIM_INTERNALS_H_ 5 #ifndef BASE_ALLOCATOR_ALLOCATOR_SHIM_INTERNALS_H_
6 #define BASE_ALLOCATOR_ALLOCATOR_SHIM_INTERNALS_H_ 6 #define BASE_ALLOCATOR_ALLOCATOR_SHIM_INTERNALS_H_
7 7
8 #if defined(__GNUC__) 8 #if defined(__GNUC__)
9 9
10 #include <sys/cdefs.h> // for __THROW 10 #include <sys/cdefs.h> // for __THROW
11 11
12 #ifndef __THROW // Not a glibc system 12 #ifndef __THROW // Not a glibc system
13 #ifdef _NOEXCEPT // LLVM libc++ uses noexcept instead 13 #ifdef _NOEXCEPT // LLVM libc++ uses noexcept instead
14 #define __THROW _NOEXCEPT 14 #define __THROW _NOEXCEPT
15 #else 15 #else
16 #define __THROW 16 #define __THROW
17 #endif // !_NOEXCEPT 17 #endif // !_NOEXCEPT
18 #endif 18 #endif
19 19
20 // Shim layer symbols need to be ALWAYS exported, regardless of component build. 20 // Shim layer symbols need to be ALWAYS exported, regardless of component build.
21 #define SHIM_ALWAYS_EXPORT __attribute__((visibility("default"))) 21 #define SHIM_ALWAYS_EXPORT __attribute__((visibility("default")))
22 22
23 #define SHIM_ALIAS_SYMBOL(fn) __attribute__((alias(#fn)))
24
25 #endif // __GNUC__ 23 #endif // __GNUC__
26 24
27 #endif // BASE_ALLOCATOR_ALLOCATOR_SHIM_INTERNALS_H_ 25 #endif // BASE_ALLOCATOR_ALLOCATOR_SHIM_INTERNALS_H_
OLDNEW
« no previous file with comments | « base/allocator/allocator_shim.cc ('k') | base/allocator/allocator_shim_override_cpp_symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698