Skip to content

Commit f94621e

Browse files
author
ohager
committed
Writing errors to stderr
1 parent 06d3fd8 commit f94621e

File tree

6 files changed

+1735
-1728
lines changed

6 files changed

+1735
-1728
lines changed

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,10 @@ Release/
3333
ipch/
3434
x64/
3535
Debug/
36-
.vs/
36+
.vs/
37+
38+
# Additional VS generated files
39+
*.sdf
40+
*.opensdf
41+
*.vcxproj.user
42+
*.suo

XPlotter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void printColouredMessage(std::string message, WORD colour) {
2121

2222
void printLastError(std::string message) {
2323
SetConsoleTextAttribute(hConsole, colour::RED);
24-
std::printf("%s (code = %u) \n", message.c_str(), GetLastError());
24+
std::fprintf(stderr, "%s (code = %u) \n", message.c_str(), GetLastError());
2525
SetConsoleTextAttribute(hConsole, colour::GRAY);
2626
}
2727

XPlotter.lst

Lines changed: 1723 additions & 1723 deletions
Large diffs are not rendered by default.

XPlotter.sln

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,4 @@ Global
2525
GlobalSection(SolutionProperties) = preSolution
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
28-
GlobalSection(Performance) = preSolution
29-
HasPerformanceSessions = true
30-
EndGlobalSection
3128
EndGlobal

XPlotter.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@
212212
</ItemGroup>
213213
<ItemGroup>
214214
<ClCompile Include="mshabal_avx1.c" />
215+
<ClCompile Include="mshabal_avx2.c" />
215216
<ClCompile Include="mshabal_sse4.c" />
216217
<ClCompile Include="Nonce.cpp" />
217218
<ClCompile Include="XPlotter.cpp" />

XPlotter.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
<ClCompile Include="mshabal_sse4.c">
4545
<Filter>Source Files</Filter>
4646
</ClCompile>
47+
<ClCompile Include="mshabal_avx2.c">
48+
<Filter>Source Files</Filter>
49+
</ClCompile>
4750
</ItemGroup>
4851
<ItemGroup>
4952
<MASM Include="shabal.asm">

0 commit comments

Comments
 (0)