MCPcopy Create free account
hub / github.com/Snapchat/Valdi / call

Method call

valdi_core/src/valdi_core/cpp/Utils/ValueFunction.cpp:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69Result<Value> ValueFunction::call(ValueFunctionFlags flags, const Value* parameters, size_t size) noexcept {
70 SimpleExceptionTracker exceptionTracker;
71 auto value = (*this)(ValueFunctionCallContext(flags, parameters, size, exceptionTracker));
72 if (!exceptionTracker) {
73 return exceptionTracker.extractError();
74 }
75 return value;
76}
77
78StringBox ValueFunction::getDebugDescription() const {
79 return STRING_FORMAT("{}@{}", getFunctionType(), reinterpret_cast<const void*>(this));

Callers 1

operator()Method · 0.95

Calls 2

extractErrorMethod · 0.80

Tested by

no test coverage detected