Skip to content

Commit

Permalink
Merge pull request Blagodarenko#20 from ohager/stderr_output
Browse files Browse the repository at this point in the history
Writing errors to stderr
  • Loading branch information
Blagodarenko committed Jan 19, 2018
2 parents 06d3fd8 + f94621e commit 62085b8
Show file tree
Hide file tree
Showing 6 changed files with 1,735 additions and 1,728 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Expand Up @@ -33,4 +33,10 @@ Release/
ipch/
x64/
Debug/
.vs/
.vs/

# Additional VS generated files
*.sdf
*.opensdf
*.vcxproj.user
*.suo
2 changes: 1 addition & 1 deletion XPlotter.cpp
Expand Up @@ -21,7 +21,7 @@ void printColouredMessage(std::string message, WORD colour) {

void printLastError(std::string message) {
SetConsoleTextAttribute(hConsole, colour::RED);
std::printf("%s (code = %u) \n", message.c_str(), GetLastError());
std::fprintf(stderr, "%s (code = %u) \n", message.c_str(), GetLastError());
SetConsoleTextAttribute(hConsole, colour::GRAY);
}

Expand Down
3,446 changes: 1,723 additions & 1,723 deletions XPlotter.lst

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions XPlotter.sln
Expand Up @@ -25,7 +25,4 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(Performance) = preSolution
HasPerformanceSessions = true
EndGlobalSection
EndGlobal
1 change: 1 addition & 0 deletions XPlotter.vcxproj
Expand Up @@ -212,6 +212,7 @@
</ItemGroup>
<ItemGroup>
<ClCompile Include="mshabal_avx1.c" />
<ClCompile Include="mshabal_avx2.c" />
<ClCompile Include="mshabal_sse4.c" />
<ClCompile Include="Nonce.cpp" />
<ClCompile Include="XPlotter.cpp" />
Expand Down
3 changes: 3 additions & 0 deletions XPlotter.vcxproj.filters
Expand Up @@ -44,6 +44,9 @@
<ClCompile Include="mshabal_sse4.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="mshabal_avx2.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<MASM Include="shabal.asm">
Expand Down

0 comments on commit 62085b8

Please sign in to comment.