From 3c2e69857d07b48f428cadc01e2157d8a3a380f7 Mon Sep 17 00:00:00 2001 From: Ryan Oldenburg Date: Sun, 20 Mar 2022 00:41:32 -0500 Subject: [PATCH] stacktrace off --- src/windy/platforms/win32/platform.nim | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/windy/platforms/win32/platform.nim b/src/windy/platforms/win32/platform.nim index 841eeef..dae6781 100644 --- a/src/windy/platforms/win32/platform.nim +++ b/src/windy/platforms/win32/platform.nim @@ -1462,6 +1462,8 @@ elif compileOption("threads"): handle.LPARAM ) + {.push stackTrace: off.} + proc httpCallback( hInternet: HINTERNET, dwContext: DWORD_PTR, @@ -1469,8 +1471,6 @@ elif compileOption("threads"): lpvStatusInformation: LPVOID, dwStatusInformationLength: DWORD ): void {.stdcall, raises: [].} = - {.push stackTrace: off.} - var wParam: WPARAM case dwInternetStatus: @@ -1502,8 +1502,6 @@ elif compileOption("threads"): dwContext.LPARAM ) - {.pop.} - proc webSocketCallback( hWebSocket: HINTERNET, dwContext: DWORD_PTR, @@ -1511,8 +1509,6 @@ elif compileOption("threads"): lpvStatusInformation: LPVOID, dwStatusInformationLength: DWORD ): void {.stdcall, raises: [].} = - {.push stackTrace: off.} - var wParam: WPARAM case dwInternetStatus: @@ -1539,7 +1535,7 @@ elif compileOption("threads"): dwContext.LPARAM ) - {.pop.} + {.pop.} proc onStartRequest(handle: HttpRequestHandle) = let state = httpRequests.getOrDefault(handle, nil)