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

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

Issue 1675143004: Allocator shim skeleton + Linux impl behind a build flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shim_exp_flag
Patch Set: Make self the 1st arg Created 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef BASE_ALLOCATOR_ALLOCATOR_SHIM_INTERNALS_H_
6 #define BASE_ALLOCATOR_ALLOCATOR_SHIM_INTERNALS_H_
7
8 #if defined(__GNUC__)
9
10 #include <sys/cdefs.h> // for __THROW
11
12 #ifndef __THROW /* Not a glibc system */
13 #define __THROW
14 #endif
15
16 // Shim layer symbols need to be ALWAYS exported, regardless of component build.
17 #define SHIM_ALWAYS_EXPORT __attribute__((visibility("default")))
18
19 #define SHIM_ALIAS_SYMBOL(fn) __attribute__((alias(#fn)))
20
21 #endif // __GNUC__
22
23 #endif // BASE_ALLOCATOR_ALLOCATOR_SHIM_INTERNALS_H_
OLDNEW
« no previous file with comments | « base/allocator/allocator_shim_default_dispatch_to_tcmalloc.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