Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-31 09:12:54

0001 // Copyright 2017 The Abseil Authors.
0002 //
0003 // Licensed under the Apache License, Version 2.0 (the "License");
0004 // you may not use this file except in compliance with the License.
0005 // You may obtain a copy of the License at
0006 //
0007 //      https://www.apache.org/licenses/LICENSE-2.0
0008 //
0009 // Unless required by applicable law or agreed to in writing, software
0010 // distributed under the License is distributed on an "AS IS" BASIS,
0011 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0012 // See the License for the specific language governing permissions and
0013 // limitations under the License.
0014 
0015 #ifndef ABSL_BASE_INTERNAL_PRETTY_FUNCTION_H_
0016 #define ABSL_BASE_INTERNAL_PRETTY_FUNCTION_H_
0017 
0018 // ABSL_PRETTY_FUNCTION
0019 //
0020 // In C++11, __func__ gives the undecorated name of the current function.  That
0021 // is, "main", not "int main()".  Various compilers give extra macros to get the
0022 // decorated function name, including return type and arguments, to
0023 // differentiate between overload sets.  ABSL_PRETTY_FUNCTION is a portable
0024 // version of these macros which forwards to the correct macro on each compiler.
0025 #if defined(_MSC_VER)
0026 #define ABSL_PRETTY_FUNCTION __FUNCSIG__
0027 #elif defined(__GNUC__)
0028 #define ABSL_PRETTY_FUNCTION __PRETTY_FUNCTION__
0029 #else
0030 #error "Unsupported compiler"
0031 #endif
0032 
0033 #endif  // ABSL_BASE_INTERNAL_PRETTY_FUNCTION_H_