config.h
Go to the documentation of this file.
00001 //
00002 //  Copyright 2019 The Abseil Authors.
00003 //
00004 // Licensed under the Apache License, Version 2.0 (the "License");
00005 // you may not use this file except in compliance with the License.
00006 // You may obtain a copy of the License at
00007 //
00008 //      https://www.apache.org/licenses/LICENSE-2.0
00009 //
00010 // Unless required by applicable law or agreed to in writing, software
00011 // distributed under the License is distributed on an "AS IS" BASIS,
00012 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013 // See the License for the specific language governing permissions and
00014 // limitations under the License.
00015 
00016 #ifndef ABSL_FLAGS_CONFIG_H_
00017 #define ABSL_FLAGS_CONFIG_H_
00018 
00019 // Determine if we should strip string literals from the Flag objects.
00020 // By default we strip string literals on mobile platforms.
00021 #if !defined(ABSL_FLAGS_STRIP_NAMES)
00022 
00023 #if defined(__ANDROID__)
00024 #define ABSL_FLAGS_STRIP_NAMES 1
00025 
00026 #elif defined(__APPLE__)
00027 #include <TargetConditionals.h>
00028 #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
00029 #define ABSL_FLAGS_STRIP_NAMES 1
00030 #elif defined(TARGET_OS_EMBEDDED) && TARGET_OS_EMBEDDED
00031 #define ABSL_FLAGS_STRIP_NAMES 1
00032 #endif  // TARGET_OS_*
00033 #endif
00034 
00035 #endif  // !defined(ABSL_FLAGS_STRIP_NAMES)
00036 
00037 #if !defined(ABSL_FLAGS_STRIP_NAMES)
00038 // If ABSL_FLAGS_STRIP_NAMES wasn't set on the command line or above,
00039 // the default is not to strip.
00040 #define ABSL_FLAGS_STRIP_NAMES 0
00041 #endif
00042 
00043 #if !defined(ABSL_FLAGS_STRIP_HELP)
00044 // By default, if we strip names, we also strip help.
00045 #define ABSL_FLAGS_STRIP_HELP ABSL_FLAGS_STRIP_NAMES
00046 #endif
00047 
00048 #endif  // ABSL_FLAGS_CONFIG_H_


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:42:14