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

Function FormatSehExceptionMessage

tests/gtest/gtest-all.cc:3861–3868  ·  view source on GitHub ↗

Adds an "exception thrown" fatal failure to the current test. This function returns its result via an output parameter pointer because VC++ prohibits creation of objects with destructors on stack in functions using __try (see error C2712).

Source from the content-addressed store, hash-verified

3859// prohibits creation of objects with destructors on stack in functions
3860// using __try (see error C2712).
3861static std::string* FormatSehExceptionMessage(DWORD exception_code,
3862 const char* location) {
3863 Message message;
3864 message << "SEH exception with code 0x" << std::setbase(16) <<
3865 exception_code << std::setbase(10) << " thrown in " << location << ".";
3866
3867 return new std::string(message.GetString());
3868}
3869
3870#endif // GTEST_HAS_SEH
3871

Calls 1

GetStringMethod · 0.80

Tested by

no test coverage detected