Skip to content

remove \r from printf statements #4408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/cpp/structured-exception-handling-c-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ class TestClass
public:
~TestClass()
{
printf("Destroying TestClass!\r\n");
printf("Destroying TestClass!\n");
}
};

__declspec(noinline) void TestCPPEX()
{
#ifdef CPPEX
printf("Throwing C++ exception\r\n");
printf("Throwing C++ exception\n");
throw std::exception("");
#else
printf("Triggering SEH exception\r\n");
printf("Triggering SEH exception\n");
volatile int *pInt = 0x00000000;
*pInt = 20;
#endif
Expand All @@ -97,7 +97,7 @@ int main()
}
__except(EXCEPTION_EXECUTE_HANDLER)
{
printf("Executing SEH __except block\r\n");
printf("Executing SEH __except block\n");
}

return 0;
Expand Down