HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
diagnostic.h
Go to the documentation of this file.
1 //
2 // Copyright 2018 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_IMAGING_HF_DIAGNOSTIC_H
8 #define PXR_IMAGING_HF_DIAGNOSTIC_H
9 
10 #include "pxr/pxr.h"
11 #include "pxr/base/tf/diagnostic.h"
13 
15 
16 
17 ///
18 /// Issues a warning with a message. This differs from just calling TF_WARN
19 /// in that it tags the warning as actually needing to be a validation error,
20 /// and a place holder for when we develop a true validation system where we
21 /// can plumb this information back to the application.
22 ///
23 #define HF_VALIDATION_WARN(id, ...) \
24  TF_WARN("Invalid Hydra prim '%s': %s", \
25  id.GetText(), \
26  TfStringPrintf(__VA_ARGS__).c_str())
27 
28 
30 
31 #endif // PXR_IMAGING_HF_DIAGNOSTIC_H
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74