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

Side by Side Diff: base/strings/stringize_macros.h

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 10 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/strings/string_util_win.h ('k') | base/strings/stringize_macros_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 // This file defines preprocessor macros for stringizing preprocessor
6 // symbols (or their output) and manipulating preprocessor symbols
7 // that define strings.
8
9 #ifndef BASE_STRINGS_STRINGIZE_MACROS_H_
10 #define BASE_STRINGS_STRINGIZE_MACROS_H_
11
12 #include "build/build_config.h"
13
14 // This is not very useful as it does not expand defined symbols if
15 // called directly. Use its counterpart without the _NO_EXPANSION
16 // suffix, below.
17 #define STRINGIZE_NO_EXPANSION(x) #x
18
19 // Use this to quote the provided parameter, first expanding it if it
20 // is a preprocessor symbol.
21 //
22 // For example, if:
23 // #define A FOO
24 // #define B(x) myobj->FunctionCall(x)
25 //
26 // Then:
27 // STRINGIZE(A) produces "FOO"
28 // STRINGIZE(B(y)) produces "myobj->FunctionCall(y)"
29 #define STRINGIZE(x) STRINGIZE_NO_EXPANSION(x)
30
31 #endif // BASE_STRINGS_STRINGIZE_MACROS_H_
OLDNEW
« no previous file with comments | « base/strings/string_util_win.h ('k') | base/strings/stringize_macros_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698