Go to the source code of this file.
|
#define | _PDG_INVOKE_CALLBACK(result, type, state, node, item,...) |
|
#define | PDG_NODE_CALLBACK(result, type, state, node,...) |
|
#define | PDG_TASK_CALLBACK(result, type, item) |
|
#define _PDG_INVOKE_CALLBACK |
( |
|
result, |
|
|
|
type, |
|
|
|
state, |
|
|
|
node, |
|
|
|
item, |
|
|
|
... |
|
) |
| |
Value:
UT_WorkBuffer _event_path; \
bool path_has_item = node->performancePath(_event_path, #
type, item); \
UT_PerfMonAutoPDGCookEvent
event( \
_event_path.buffer(), (path_has_item ?
nullptr : #
type)); \
PDG_EvaluationContext::StateScope scope(
SYSgetSTID(), state, \
false, node, item, node->context()); \
UTisolate([&]() \
{ \
try \
result = node->callback()->postInvoke( \
node->callback()->on ##
type (__VA_ARGS__)); \
} \
catch (...) \
}\
});\
}
The callback failed to execute.
static void nodeLog(NodeDebug level, const PDG_Node *node, const UT_StringHolder &tag, const UT_StringHolder &message)
Writes a verbose node output message to stdout.
**But if you need a result
Log node status + errors + warning + callback invocations.
static const UT_StringHolder theEmptyString
Definition at line 23 of file PDG_NodeCallback.h.
#define PDG_NODE_CALLBACK |
( |
|
result, |
|
|
|
type, |
|
|
|
state, |
|
|
|
node, |
|
|
|
... |
|
) |
| |
Value:
if (node->callback()->hasCallback(PDG_NodeCallback::e ##
type))\
result, type, state, node,
nullptr, __VA_ARGS__); \
}\
}
#define _PDG_INVOKE_CALLBACK(result, type, state, node, item,...)
The callback is missing or undefined.
**But if you need a result
Definition at line 48 of file PDG_NodeCallback.h.
Value:
if (item->node()->callback()->hasCallback(PDG_NodeCallback::e ##
type)) \
{\
PDG_AttributeMap::ScopedLock<false> auto_lock(item->attributes());
\
item->node(), item, item); \
} \
}
#define _PDG_INVOKE_CALLBACK(result, type, state, node, item,...)
The callback is missing or undefined.
**But if you need a result
Definition at line 58 of file PDG_NodeCallback.h.