Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c8bfbb4

Browse files
authoredJan 3, 2025··
Merge pull request #28 from slangbot/format-5973-aleino/examples-backtrace
Format code for PR #5973
2 parents 664740c + 67a940a commit c8bfbb4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎examples/example-winmain/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ int WinMain(
1414
int /*showCommand*/)
1515

1616
{
17-
FILE * logFile = fopen(g_logFileName, "w");
17+
FILE* logFile = fopen(g_logFileName, "w");
1818
__try
1919
{
2020
int argc = 0;

‎examples/stacktrace-windows/common.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
// dbghelp.h needs to be included after windows.h
99
#include <dbghelp.h>
1010

11-
#define SLANG_EXAMPLE_LOG_ERROR(...) \
12-
fprintf(file, "error: %s: %d: ", __FILE__, __LINE__); \
13-
print(file, __VA_ARGS__); \
11+
#define SLANG_EXAMPLE_LOG_ERROR(...) \
12+
fprintf(file, "error: %s: %d: ", __FILE__, __LINE__); \
13+
print(file, __VA_ARGS__); \
1414
fprintf(file, "\n");
1515

1616
static void print(FILE* /* file */) {}

0 commit comments

Comments
 (0)
Please sign in to comment.