24 #ifndef PXR_BASE_TF_ENV_SETTING_H
25 #define PXR_BASE_TF_ENV_SETTING_H
162 val = setting.
_value->load();
174 class Tf_EnvSettingRegistry;
179 #define TF_DEFINE_ENV_SETTING(envVar, defValue, description) \
180 std::atomic< decltype(Tf_ChooseEnvSettingType(defValue))*> \
182 TfEnvSetting<decltype(Tf_ChooseEnvSettingType(defValue))> envVar = { \
183 &envVar##_value, defValue, #envVar, description }; \
184 TF_REGISTRY_FUNCTION_WITH_TAG(Tf_EnvSettingRegistry, envVar) { \
185 (void)TfGetEnvSetting(envVar); \
190 #endif // PXR_BASE_TF_ENV_SETTING_H
void Tf_InitializeEnvSetting(TfEnvSetting< T > *)
GLsizei const GLchar *const * string
T const & TfGetEnvSetting(TfEnvSetting< T > &setting)
std::atomic< T * > * _value
char const * _description
std::atomic< std::string * > * _value
bool Tf_ChooseEnvSettingType(bool)
char const * _description
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE