39 lines
1.3 KiB
C
Raw Normal View History

/*
* Copyright (c) 2013 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
// Modified from the Chromium original:
// src/base/strings/stringize_macros.h
// This file defines preprocessor macros for stringizing preprocessor
// symbols (or their output) and manipulating preprocessor symbols
// that define strings.
Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ ) Reason for revert: Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6). Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer. Original issue's description: > Enable GN check for webrtc/base > > It's not possible to enable it for the rtc_base_approved > target but since a larger refactoring is ongoing for webrtc/base > this CL doesn't attempt to fix that. > > Changes made: > * Move webrtc/system_wrappers/include/stringize_macros.h into > webrtc/base:rtc_base_approved_unittests (and corresponding > unit test to rtc_base_approved_unittests). > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target. > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into > webrtc/base. > * Remove unused use include of webrtc/base/fileutils.h in > webrtc/base/pathutils.cc > > BUG=webrtc:6828, webrtc:3806, webrtc:7480 > NOTRY=True > > Review-Url: https://codereview.webrtc.org/2717083002 > Cr-Commit-Position: refs/heads/master@{#17766} > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=webrtc:6828, webrtc:3806, webrtc:7480 NOTRY=True Review-Url: https://codereview.webrtc.org/2838683002 Cr-Commit-Position: refs/heads/master@{#17849}
2017-04-24 12:26:27 -07:00
#ifndef WEBRTC_SYSTEM_WRAPPERS_INCLUDE_STRINGIZE_MACROS_H_
#define WEBRTC_SYSTEM_WRAPPERS_INCLUDE_STRINGIZE_MACROS_H_
// This is not very useful as it does not expand defined symbols if
// called directly. Use its counterpart without the _NO_EXPANSION
// suffix, below.
#define STRINGIZE_NO_EXPANSION(x) #x
// Use this to quote the provided parameter, first expanding it if it
// is a preprocessor symbol.
//
// For example, if:
// #define A FOO
// #define B(x) myobj->FunctionCall(x)
//
// Then:
// STRINGIZE(A) produces "FOO"
// STRINGIZE(B(y)) produces "myobj->FunctionCall(y)"
#define STRINGIZE(x) STRINGIZE_NO_EXPANSION(x)
Revert of Enable GN check for webrtc/base (patchset #13 id:240001 of https://codereview.webrtc.org/2717083002/ ) Reason for revert: Breaks Chromium because in Chromium we import WebRTC with rtc_include_tests=false (https://bugs.chromium.org/p/chromium/issues/detail?id=713179#c6). Chromium uses webrtc/test/fuzzers and this CL adds test dependencies to neteq_rtc_fuzzer. Original issue's description: > Enable GN check for webrtc/base > > It's not possible to enable it for the rtc_base_approved > target but since a larger refactoring is ongoing for webrtc/base > this CL doesn't attempt to fix that. > > Changes made: > * Move webrtc/system_wrappers/include/stringize_macros.h into > webrtc/base:rtc_base_approved_unittests (and corresponding > unit test to rtc_base_approved_unittests). > * Move md5digest.* from rtc_base_approved to rtc_base_test_utils target. > * Move webrtc/system_wrappers/include/stringize_macros.h (+test) into > webrtc/base. > * Remove unused use include of webrtc/base/fileutils.h in > webrtc/base/pathutils.cc > > BUG=webrtc:6828, webrtc:3806, webrtc:7480 > NOTRY=True > > Review-Url: https://codereview.webrtc.org/2717083002 > Cr-Commit-Position: refs/heads/master@{#17766} > Committed: https://chromium.googlesource.com/external/webrtc/+/ed754e71ae8866db641677073274e86fe704eeac TBR=perkj@webrtc.org,tommi@webrtc.org,nisse@webrtc.org,kjellander@webrtc.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=webrtc:6828, webrtc:3806, webrtc:7480 NOTRY=True Review-Url: https://codereview.webrtc.org/2838683002 Cr-Commit-Position: refs/heads/master@{#17849}
2017-04-24 12:26:27 -07:00
#endif // WEBRTC_SYSTEM_WRAPPERS_INCLUDE_STRINGIZE_MACROS_H_