From 68e2e58edc6ca2cde28c1ced591eac26ecf7b6c1 Mon Sep 17 00:00:00 2001 From: slangbot <186143334+slangbot@users.noreply.github.com> Date: Fri, 3 Jan 2025 08:39:06 +0000 Subject: [PATCH] format code --- examples/example-winmain/main.cpp | 2 +- examples/stacktrace-windows/common.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/example-winmain/main.cpp b/examples/example-winmain/main.cpp index fbf7e87574..8094e7fc43 100644 --- a/examples/example-winmain/main.cpp +++ b/examples/example-winmain/main.cpp @@ -14,7 +14,7 @@ int WinMain( int /*showCommand*/) { - FILE * logFile = fopen(g_logFileName, "w"); + FILE* logFile = fopen(g_logFileName, "w"); __try { int argc = 0; diff --git a/examples/stacktrace-windows/common.cpp b/examples/stacktrace-windows/common.cpp index c3fdcfbeeb..b07f78d0a4 100644 --- a/examples/stacktrace-windows/common.cpp +++ b/examples/stacktrace-windows/common.cpp @@ -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 */) {}