Skip to content

Commit

Permalink
stacktrace off
Browse files Browse the repository at this point in the history
  • Loading branch information
guzba committed Mar 20, 2022
1 parent d6a3c65 commit 3c2e698
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/windy/platforms/win32/platform.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1462,15 +1462,15 @@ elif compileOption("threads"):
handle.LPARAM
)

{.push stackTrace: off.}

proc httpCallback(
hInternet: HINTERNET,
dwContext: DWORD_PTR,
dwInternetStatus: DWORD,
lpvStatusInformation: LPVOID,
dwStatusInformationLength: DWORD
): void {.stdcall, raises: [].} =
{.push stackTrace: off.}

var wParam: WPARAM

case dwInternetStatus:
Expand Down Expand Up @@ -1502,17 +1502,13 @@ elif compileOption("threads"):
dwContext.LPARAM
)

{.pop.}

proc webSocketCallback(
hWebSocket: HINTERNET,
dwContext: DWORD_PTR,
dwInternetStatus: DWORD,
lpvStatusInformation: LPVOID,
dwStatusInformationLength: DWORD
): void {.stdcall, raises: [].} =
{.push stackTrace: off.}

var wParam: WPARAM

case dwInternetStatus:
Expand All @@ -1539,7 +1535,7 @@ elif compileOption("threads"):
dwContext.LPARAM
)

{.pop.}
{.pop.}

proc onStartRequest(handle: HttpRequestHandle) =
let state = httpRequests.getOrDefault(handle, nil)
Expand Down

0 comments on commit 3c2e698

Please sign in to comment.