Skip to content

Commit

Permalink
Merge pull request #79 from guzba/master
Browse files Browse the repository at this point in the history
stacktrace off for c callback
  • Loading branch information
treeform authored Mar 20, 2022
2 parents d6a3c65 + 3c2e698 commit 8614287
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 8614287

Please sign in to comment.