HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
function.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_BASE_ARCH_FUNCTION_H
8 #define PXR_BASE_ARCH_FUNCTION_H
9 
10 /// \file arch/function.h
11 /// Define preprocessor function name macros.
12 ///
13 /// This file extents the functionality of pxr/base/arch/functionLite.h.
14 /// This file needs to be public but shouldn't be included directly by
15 /// anything outside of \c lib/tf.
16 
17 #include "pxr/pxr.h"
18 #include "pxr/base/arch/api.h"
20 #include <string>
21 
23 
24 /// Return well formatted function name.
25 ///
26 /// This function assumes \c function is __ARCH_FUNCTION__ and
27 /// \c prettyFunction is __ARCH_PRETTY_FUNCTION__, and attempts to
28 /// reconstruct a well formatted function name.
29 ///
30 /// \ingroup group_arch_Diagnostic
32 std::string ArchGetPrettierFunctionName(const std::string &function,
33  const std::string &prettyFunction);
34 
36 
37 #endif // PXR_BASE_ARCH_FUNCTION_H
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
#define ARCH_API
Definition: api.h:23
PXR_NAMESPACE_OPEN_SCOPE ARCH_API std::string ArchGetPrettierFunctionName(const std::string &function, const std::string &prettyFunction)