7#ifndef PXR_BASE_TF_CALL_CONTEXT_H
8#define PXR_BASE_TF_CALL_CONTEXT_H
22#include "pxr/base/tf/api.h"
27PXR_NAMESPACE_OPEN_SCOPE
30#define TF_CALL_CONTEXT \
31TfCallContext(__ARCH_FILE__, __ARCH_FUNCTION__, __LINE__, __ARCH_PRETTY_FUNCTION__)
36 constexpr TfCallContext()
40 , _prettyFunction(nullptr)
43 constexpr TfCallContext(
char const *file,
46 char const *prettyFunction) :
50 _prettyFunction(prettyFunction),
55 char const *GetFile()
const {
59 char const *GetFunction()
const {
63 size_t GetLine()
const {
67 char const *GetPrettyFunction()
const {
68 return _prettyFunction;
71 TfCallContext
const& Hide()
const {
76 bool IsHidden()
const {
80 explicit operator bool()
const {
return _file && _function; }
85 char const *_function;
87 char const *_prettyFunction;
91PXR_NAMESPACE_CLOSE_SCOPE
Define preprocessor function name macros.