MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / set_os_stack_trace_getter

Method set_os_stack_trace_getter

tests/gtest/gtest-all.cc:7050–7056  ·  view source on GitHub ↗

Sets the OS stack trace getter. Does nothing if the input and the current OS stack trace getter are the same; otherwise, deletes the old getter and makes the input the current getter.

Source from the content-addressed store, hash-verified

7048// the same; otherwise, deletes the old getter and makes the input the
7049// current getter.
7050void UnitTestImpl::set_os_stack_trace_getter(
7051 OsStackTraceGetterInterface* getter) {
7052 if (os_stack_trace_getter_ != getter) {
7053 delete os_stack_trace_getter_;
7054 os_stack_trace_getter_ = getter;
7055 }
7056}
7057
7058// Returns the current OS stack trace getter if it is not NULL;
7059// otherwise, creates an OsStackTraceGetter, makes it the current

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected