Skip to content
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

Format code for PR #5973 #29

Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion examples/example-winmain/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ int WinMain(
int /*showCommand*/)

{
FILE * logFile = fopen(g_logFileName, "w");
FILE* logFile = fopen(g_logFileName, "w");
__try
{
int argc = 0;
Expand Down
6 changes: 3 additions & 3 deletions examples/stacktrace-windows/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
// dbghelp.h needs to be included after windows.h
#include <dbghelp.h>

#define SLANG_EXAMPLE_LOG_ERROR(...) \
fprintf(file, "error: %s: %d: ", __FILE__, __LINE__); \
print(file, __VA_ARGS__); \
#define SLANG_EXAMPLE_LOG_ERROR(...) \
fprintf(file, "error: %s: %d: ", __FILE__, __LINE__); \
print(file, __VA_ARGS__); \
fprintf(file, "\n");

static void print(FILE* /* file */) {}
Expand Down
Loading