Fix Windows compilation error.

This commit is contained in:
cheatfate 2019-04-11 00:24:37 +03:00
parent a6be6426ab
commit a4c53b4346
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95

View File

@ -9,9 +9,10 @@ proc catchOrQuit(error: Exception) =
quit 1
proc traceAsyncErrors*(fut: FutureBase) =
fut.addCallback do (arg: pointer):
proc continuation(arg: pointer) {.gcsafe.} =
if not fut.error.isNil:
catchOrQuit fut.error[]
fut.addCallback continuation
template traceAwaitErrors*(fut: FutureBase) =
let f = fut